@ni/nimble-components 24.1.14 → 25.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/all-components-bundle.js +236 -180
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +446 -421
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/mapping/icon/index.d.ts +1 -0
- package/dist/esm/mapping/icon/index.js +7 -0
- package/dist/esm/mapping/icon/index.js.map +1 -1
- package/dist/esm/mapping/spinner/index.d.ts +1 -0
- package/dist/esm/mapping/spinner/index.js +7 -0
- package/dist/esm/mapping/spinner/index.js.map +1 -1
- package/dist/esm/src/mapping/icon/index.d.ts +1 -0
- package/dist/esm/src/mapping/spinner/index.d.ts +1 -0
- package/dist/esm/src/table/testing/table.pageobject.d.ts +4 -4
- package/dist/esm/src/table-column/enum-base/models/mapping-icon-config.d.ts +3 -1
- package/dist/esm/src/table-column/enum-base/models/mapping-spinner-config.d.ts +8 -1
- package/dist/esm/src/table-column/icon/cell-view/index.d.ts +6 -3
- package/dist/esm/src/table-column/icon/cell-view/styles.d.ts +1 -0
- package/dist/esm/src/table-column/icon/group-header-view/index.d.ts +4 -3
- package/dist/esm/src/table-column/icon/testing/table-column-icon.pageobject.d.ts +23 -0
- package/dist/esm/table/testing/table.pageobject.d.ts +4 -4
- package/dist/esm/table/testing/table.pageobject.js +15 -37
- package/dist/esm/table/testing/table.pageobject.js.map +1 -1
- package/dist/esm/table-column/enum-base/models/mapping-icon-config.d.ts +3 -1
- package/dist/esm/table-column/enum-base/models/mapping-icon-config.js +4 -3
- package/dist/esm/table-column/enum-base/models/mapping-icon-config.js.map +1 -1
- package/dist/esm/table-column/enum-base/models/mapping-spinner-config.d.ts +8 -1
- package/dist/esm/table-column/enum-base/models/mapping-spinner-config.js +13 -1
- package/dist/esm/table-column/enum-base/models/mapping-spinner-config.js.map +1 -1
- package/dist/esm/table-column/icon/cell-view/index.d.ts +6 -3
- package/dist/esm/table-column/icon/cell-view/index.js +19 -7
- package/dist/esm/table-column/icon/cell-view/index.js.map +1 -1
- package/dist/esm/table-column/icon/cell-view/styles.d.ts +1 -0
- package/dist/esm/table-column/icon/cell-view/styles.js +27 -0
- package/dist/esm/table-column/icon/cell-view/styles.js.map +1 -0
- package/dist/esm/table-column/icon/cell-view/template.js +15 -8
- package/dist/esm/table-column/icon/cell-view/template.js.map +1 -1
- package/dist/esm/table-column/icon/group-header-view/index.d.ts +4 -3
- package/dist/esm/table-column/icon/group-header-view/index.js +8 -8
- package/dist/esm/table-column/icon/group-header-view/index.js.map +1 -1
- package/dist/esm/table-column/icon/group-header-view/styles.js +5 -3
- package/dist/esm/table-column/icon/group-header-view/styles.js.map +1 -1
- package/dist/esm/table-column/icon/group-header-view/template.js +10 -24
- package/dist/esm/table-column/icon/group-header-view/template.js.map +1 -1
- package/dist/esm/table-column/icon/index.js +2 -2
- package/dist/esm/table-column/icon/index.js.map +1 -1
- package/dist/esm/table-column/icon/testing/table-column-icon.pageobject.d.ts +23 -0
- package/dist/esm/table-column/icon/testing/table-column-icon.pageobject.js +79 -0
- package/dist/esm/table-column/icon/testing/table-column-icon.pageobject.js.map +1 -0
- package/package.json +1 -1
|
@@ -4049,15 +4049,15 @@ const Ev=Z`<template slot="mapping"></template>`
|
|
|
4049
4049
|
class Iv extends _v{}t([lt()],Iv.prototype,"text",void 0)
|
|
4050
4050
|
const Dv=Iv.compose({baseName:"mapping-text",template:Ev})
|
|
4051
4051
|
function Av(t){return t.prototype instanceof cm}wi.getOrCreate().withPrefix("nimble").register(Dv())
|
|
4052
|
-
class Tv extends _v{async resolveIconAsync(t){try{this.resolvedIcon=void 0,await customElements.whenDefined(t)}catch(t){return}if(t!==this.icon)return
|
|
4052
|
+
class Tv extends _v{constructor(){super(...arguments),this.textHidden=!1}async resolveIconAsync(t){try{this.resolvedIcon=void 0,await customElements.whenDefined(t)}catch(t){return}if(t!==this.icon)return
|
|
4053
4053
|
const e=customElements.get(t)
|
|
4054
4054
|
this.resolvedIcon=Av(e)?t:void 0}iconChanged(){const t=this.icon
|
|
4055
4055
|
if(!t)return void(this.resolvedIcon=void 0)
|
|
4056
4056
|
const e=customElements.get(t)
|
|
4057
|
-
e?this.resolvedIcon=Av(e)?t:void 0:this.resolveIconAsync(t)}}t([lt()],Tv.prototype,"icon",void 0),t([lt()],Tv.prototype,"severity",void 0),t([lt()],Tv.prototype,"text",void 0),t([g],Tv.prototype,"resolvedIcon",void 0)
|
|
4057
|
+
e?this.resolvedIcon=Av(e)?t:void 0:this.resolveIconAsync(t)}}t([lt()],Tv.prototype,"icon",void 0),t([lt()],Tv.prototype,"severity",void 0),t([lt()],Tv.prototype,"text",void 0),t([lt({attribute:"text-hidden",mode:"boolean"})],Tv.prototype,"textHidden",void 0),t([g],Tv.prototype,"resolvedIcon",void 0)
|
|
4058
4058
|
const Ov=Tv.compose({baseName:"mapping-icon",template:Ev})
|
|
4059
4059
|
wi.getOrCreate().withPrefix("nimble").register(Ov())
|
|
4060
|
-
class Rv extends _v{}t([lt()],Rv.prototype,"text",void 0)
|
|
4060
|
+
class Rv extends _v{constructor(){super(...arguments),this.textHidden=!1}}t([lt()],Rv.prototype,"text",void 0),t([lt({attribute:"text-hidden",mode:"boolean"})],Rv.prototype,"textHidden",void 0)
|
|
4061
4061
|
const Fv=Rv.compose({baseName:"mapping-spinner",template:Ev})
|
|
4062
4062
|
wi.getOrCreate().withPrefix("nimble").register(Fv())
|
|
4063
4063
|
const Nv=xt`
|
|
@@ -11292,11 +11292,13 @@ this.setConditionValue("unsupportedMappingType",!e)}}const CN=xt`
|
|
|
11292
11292
|
align-items: center;
|
|
11293
11293
|
}
|
|
11294
11294
|
|
|
11295
|
-
.
|
|
11295
|
+
.reserve-icon-size {
|
|
11296
11296
|
flex-shrink: 0;
|
|
11297
|
+
width: ${dl};
|
|
11298
|
+
height: ${dl};
|
|
11297
11299
|
}
|
|
11298
11300
|
|
|
11299
|
-
|
|
11301
|
+
.text {
|
|
11300
11302
|
flex-shrink: 1;
|
|
11301
11303
|
font: ${Ic};
|
|
11302
11304
|
color: ${Dc};
|
|
@@ -11305,71 +11307,94 @@ this.setConditionValue("unsupportedMappingType",!e)}}const CN=xt`
|
|
|
11305
11307
|
text-overflow: ellipsis;
|
|
11306
11308
|
}
|
|
11307
11309
|
`,kN=Z`
|
|
11308
|
-
${Ht((t=>
|
|
11309
|
-
|
|
11310
|
-
|
|
11311
|
-
|
|
11312
|
-
|
|
11313
|
-
|
|
11314
|
-
|
|
11315
|
-
|
|
11316
|
-
|
|
11317
|
-
|
|
11318
|
-
class="no-shrink">
|
|
11319
|
-
</${IT}>
|
|
11320
|
-
<span
|
|
11321
|
-
${dg("hasOverflow")}
|
|
11322
|
-
title="${t=>t.hasOverflow&&t.text?t.text:null}"
|
|
11323
|
-
>${t=>t.text}</span>
|
|
11324
|
-
`)}
|
|
11325
|
-
${Ht((t=>void 0===t.visual),Z`
|
|
11326
|
-
<span
|
|
11327
|
-
${dg("hasOverflow")}
|
|
11328
|
-
title="${t=>t.hasOverflow&&t.text?t.text:null}"
|
|
11329
|
-
>${t=>t.text}</span>
|
|
11330
|
-
`)}
|
|
11310
|
+
${Ht((t=>t.visualizationTemplate),Z`
|
|
11311
|
+
<span class="reserve-icon-size">
|
|
11312
|
+
${t=>t.visualizationTemplate}
|
|
11313
|
+
</span>
|
|
11314
|
+
`)}
|
|
11315
|
+
<span
|
|
11316
|
+
${dg("hasOverflow")}
|
|
11317
|
+
title="${t=>t.hasOverflow&&t.text?t.text:null}"
|
|
11318
|
+
class="text"
|
|
11319
|
+
>${t=>t.text}</span>
|
|
11331
11320
|
`,SN=Z` `
|
|
11332
|
-
class $N extends ZF{constructor(t,e,n){var
|
|
11333
|
-
super(n),this.severity=e,this.iconTemplate=void 0===(
|
|
11334
|
-
<${
|
|
11335
|
-
title="${t=>t.text}"
|
|
11321
|
+
class $N extends ZF{constructor(t,e,n,i){var o
|
|
11322
|
+
super(n),this.severity=e,this.textHidden=i,this.iconTemplate=void 0===(o=t)?SN:Z`
|
|
11323
|
+
<${o}
|
|
11324
|
+
title="${t=>t.textHidden?t.text:""}"
|
|
11336
11325
|
role="img"
|
|
11337
11326
|
aria-label="${t=>t.text}"
|
|
11327
|
+
aria-hidden="${t=>t.textHidden?"false":"true"}"
|
|
11338
11328
|
severity="${t=>t.severity}"
|
|
11339
|
-
class="no-shrink"
|
|
11340
11329
|
>
|
|
11341
|
-
</${
|
|
11342
|
-
`}}
|
|
11330
|
+
</${o}>
|
|
11331
|
+
`}}const MN=Z`
|
|
11332
|
+
<${IT}
|
|
11333
|
+
title="${t=>t.textHidden?t.text:""}"
|
|
11334
|
+
aria-label="${t=>t.text}"
|
|
11335
|
+
aria-hidden="${t=>t.textHidden?"false":"true"}"
|
|
11336
|
+
>
|
|
11337
|
+
</${IT}>
|
|
11338
|
+
`
|
|
11339
|
+
class _N extends ZF{constructor(t,e){super(t),this.textHidden=e,this.spinnerTemplate=MN}}class EN extends hF{constructor(){super(...arguments),this.textHidden=!1}updateText(){if(this.visualizationTemplate=void 0,!this.columnConfig)return void(this.text="")
|
|
11343
11340
|
const t=this.groupHeaderValue,e=this.columnConfig.mappingConfigs.get(t)
|
|
11344
|
-
e instanceof $N?(this.
|
|
11345
|
-
const EN
|
|
11346
|
-
wi.getOrCreate().withPrefix("nimble").register(
|
|
11347
|
-
const
|
|
11348
|
-
${
|
|
11349
|
-
|
|
11350
|
-
|
|
11351
|
-
|
|
11352
|
-
|
|
11353
|
-
|
|
11354
|
-
|
|
11341
|
+
e instanceof $N?(this.severity=e.severity,this.text=e.text??"",this.visualizationTemplate=e.iconTemplate):e instanceof _N&&(this.text=e.text??"",this.visualizationTemplate=e.spinnerTemplate)}}t([g],EN.prototype,"severity",void 0),t([g],EN.prototype,"visualizationTemplate",void 0)
|
|
11342
|
+
const IN=EN.compose({baseName:"table-column-icon-group-header-view",template:kN,styles:CN})
|
|
11343
|
+
wi.getOrCreate().withPrefix("nimble").register(IN())
|
|
11344
|
+
const DN=xt`
|
|
11345
|
+
${Oo("inline-flex")}
|
|
11346
|
+
|
|
11347
|
+
:host {
|
|
11348
|
+
gap: ${sl};
|
|
11349
|
+
align-items: center;
|
|
11350
|
+
}
|
|
11351
|
+
|
|
11352
|
+
.reserve-icon-size {
|
|
11353
|
+
flex-shrink: 0;
|
|
11354
|
+
width: ${dl};
|
|
11355
|
+
height: ${dl};
|
|
11356
|
+
}
|
|
11357
|
+
|
|
11358
|
+
.text {
|
|
11359
|
+
flex-shrink: 1;
|
|
11360
|
+
font: ${Ic};
|
|
11361
|
+
color: ${Dc};
|
|
11362
|
+
white-space: nowrap;
|
|
11363
|
+
overflow: hidden;
|
|
11364
|
+
text-overflow: ellipsis;
|
|
11365
|
+
}
|
|
11366
|
+
`,AN=Z`
|
|
11367
|
+
${Ht((t=>t.visualizationTemplate),Z`
|
|
11368
|
+
<span class="reserve-icon-size">
|
|
11369
|
+
${t=>t.visualizationTemplate}
|
|
11370
|
+
</span>
|
|
11371
|
+
`)}
|
|
11372
|
+
${Ht((t=>!t.textHidden),Z`
|
|
11373
|
+
<span
|
|
11374
|
+
${dg("hasOverflow")}
|
|
11375
|
+
title=${t=>t.hasOverflow&&t.text?t.text:null}
|
|
11376
|
+
class="text"
|
|
11377
|
+
>
|
|
11378
|
+
${t=>t.text}
|
|
11379
|
+
</span>
|
|
11355
11380
|
`)}
|
|
11356
11381
|
`
|
|
11357
|
-
class
|
|
11382
|
+
class TN extends XO{constructor(){super(...arguments),this.textHidden=!1,this.hasOverflow=!1}columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.visualizationTemplate=void 0,!this.columnConfig||!this.cellRecord)return
|
|
11358
11383
|
const t=this.cellRecord.value
|
|
11359
11384
|
if(null==t)return
|
|
11360
11385
|
const e=this.columnConfig.mappingConfigs.get(t)
|
|
11361
|
-
e instanceof $N?(this.
|
|
11362
|
-
const
|
|
11363
|
-
wi.getOrCreate().withPrefix("nimble").register(AN())
|
|
11364
|
-
class TN extends(sF(oF(VF))){getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-icon-cell-view",groupHeaderViewTag:"nimble-table-column-icon-group-header-view",delegatedEvents:[],sortOperation:jO,validator:new xN}}createColumnConfig(t){return{mappingConfigs:t}}createMappingConfig(t){if(t instanceof Tv)return new $N(t.resolvedIcon,t.severity,t.text)
|
|
11365
|
-
if(t instanceof Rv)return new MN(t.text)
|
|
11366
|
-
throw new Error("Unsupported mapping")}}const ON=TN.compose({baseName:"table-column-icon",template:BF,styles:HF})
|
|
11386
|
+
e instanceof $N?(this.severity=e.severity,this.text=e.text,this.visualizationTemplate=e.iconTemplate,this.textHidden=e.textHidden):e instanceof _N&&(this.text=e.text,this.visualizationTemplate=e.spinnerTemplate,this.textHidden=e.textHidden)}}t([g],TN.prototype,"severity",void 0),t([g],TN.prototype,"text",void 0),t([g],TN.prototype,"visualizationTemplate",void 0),t([g],TN.prototype,"textHidden",void 0),t([g],TN.prototype,"hasOverflow",void 0)
|
|
11387
|
+
const ON=TN.compose({baseName:"table-column-icon-cell-view",template:AN,styles:DN})
|
|
11367
11388
|
wi.getOrCreate().withPrefix("nimble").register(ON())
|
|
11368
|
-
|
|
11369
|
-
|
|
11370
|
-
|
|
11389
|
+
class RN extends(sF(oF(VF))){getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-icon-cell-view",groupHeaderViewTag:"nimble-table-column-icon-group-header-view",delegatedEvents:[],sortOperation:jO,validator:new xN}}createColumnConfig(t){return{mappingConfigs:t}}createMappingConfig(t){if(t instanceof Tv)return new $N(t.resolvedIcon,t.severity,t.text,t.textHidden)
|
|
11390
|
+
if(t instanceof Rv)return new _N(t.text,t.textHidden)
|
|
11391
|
+
throw new Error("Unsupported mapping")}}const FN=RN.compose({baseName:"table-column-icon",template:BF,styles:HF})
|
|
11392
|
+
wi.getOrCreate().withPrefix("nimble").register(FN())
|
|
11393
|
+
const NN=class extends MF{updateText(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:SF,styles:$F})
|
|
11371
11394
|
wi.getOrCreate().withPrefix("nimble").register(NN())
|
|
11372
|
-
const PN
|
|
11395
|
+
class PN extends(yF(bF)){placeholderChanged(){this.columnInternals.columnConfig={placeholder:this.placeholder}}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-text-cell-view",groupHeaderViewTag:mF,delegatedEvents:[],sortOperation:WO,validator:new QR([])}}}const LN=PN.compose({baseName:"table-column-text",template:iF,styles:nF})
|
|
11396
|
+
wi.getOrCreate().withPrefix("nimble").register(LN())
|
|
11397
|
+
const zN=xt`
|
|
11373
11398
|
${Oo("grid")}
|
|
11374
11399
|
|
|
11375
11400
|
:host {
|
|
@@ -11397,7 +11422,7 @@ const PN=xt`
|
|
|
11397
11422
|
overflow: auto;
|
|
11398
11423
|
}
|
|
11399
11424
|
`
|
|
11400
|
-
const
|
|
11425
|
+
const VN=class extends ro{constructor(){super(),this.activeindicator=!1}}.compose({baseName:"tabs",baseClass:ro,template:(t,e)=>Z`
|
|
11401
11426
|
<template class="${t=>t.orientation}">
|
|
11402
11427
|
${ne(0,e)}
|
|
11403
11428
|
<div class="tablist" part="tablist" role="tablist">
|
|
@@ -11416,9 +11441,9 @@ const LN=class extends ro{constructor(){super(),this.activeindicator=!1}}.compos
|
|
|
11416
11441
|
<slot name="tabpanel" ${Xt("tabpanels")}></slot>
|
|
11417
11442
|
</div>
|
|
11418
11443
|
</template>
|
|
11419
|
-
`,styles:
|
|
11420
|
-
wi.getOrCreate().withPrefix("nimble").register(
|
|
11421
|
-
const
|
|
11444
|
+
`,styles:zN})
|
|
11445
|
+
wi.getOrCreate().withPrefix("nimble").register(VN())
|
|
11446
|
+
const HN=xt`
|
|
11422
11447
|
${Oo("flex")}
|
|
11423
11448
|
|
|
11424
11449
|
:host {
|
|
@@ -11436,15 +11461,15 @@ const zN=xt`
|
|
|
11436
11461
|
rgba(${Ha}, 0.3);
|
|
11437
11462
|
margin: ${sl} ${rl};
|
|
11438
11463
|
}
|
|
11439
|
-
`,
|
|
11464
|
+
`,BN=Z`
|
|
11440
11465
|
<template slot="end">
|
|
11441
11466
|
<div class="separator"></div>
|
|
11442
11467
|
<slot></slot>
|
|
11443
11468
|
</template>
|
|
11444
11469
|
`
|
|
11445
|
-
const
|
|
11446
|
-
wi.getOrCreate().withPrefix("nimble").register(
|
|
11447
|
-
const
|
|
11470
|
+
const qN=class extends Ve{}.compose({baseName:"tabs-toolbar",template:BN,styles:HN})
|
|
11471
|
+
wi.getOrCreate().withPrefix("nimble").register(qN())
|
|
11472
|
+
const UN="outline",jN="block",WN=xt`
|
|
11448
11473
|
${Oo("inline-flex")}
|
|
11449
11474
|
${rg}
|
|
11450
11475
|
|
|
@@ -11584,12 +11609,12 @@ const BN="outline",qN="block",UN=xt`
|
|
|
11584
11609
|
top: ${rl};
|
|
11585
11610
|
right: var(--ni-private-scrollbar-width);
|
|
11586
11611
|
}
|
|
11587
|
-
`.withBehaviors(sh(
|
|
11612
|
+
`.withBehaviors(sh(UN,xt`
|
|
11588
11613
|
.control {
|
|
11589
11614
|
border-color: rgba(${Ha}, 0.3);
|
|
11590
11615
|
background-color: transparent;
|
|
11591
11616
|
}
|
|
11592
|
-
`),sh(
|
|
11617
|
+
`),sh(jN,xt`
|
|
11593
11618
|
.control {
|
|
11594
11619
|
background-color: rgba(${Ha}, 0.1);
|
|
11595
11620
|
}
|
|
@@ -11607,8 +11632,8 @@ const BN="outline",qN="block",UN=xt`
|
|
|
11607
11632
|
border-bottom-color: ${Ba};
|
|
11608
11633
|
}
|
|
11609
11634
|
`))
|
|
11610
|
-
class
|
|
11611
|
-
const
|
|
11635
|
+
class ZN extends ho{constructor(){super(...arguments),this.appearance=UN,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(t,e){super.valueChanged(t,e),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}}t([lt],ZN.prototype,"appearance",void 0),t([lt({attribute:"error-text"})],ZN.prototype,"errorText",void 0),t([lt({attribute:"error-visible",mode:"boolean"})],ZN.prototype,"errorVisible",void 0),t([g],ZN.prototype,"scrollbarWidth",void 0)
|
|
11636
|
+
const GN=ZN.compose({baseName:"text-area",baseClass:ho,template:()=>Z`
|
|
11612
11637
|
<label
|
|
11613
11638
|
part="label"
|
|
11614
11639
|
for="control"
|
|
@@ -11665,9 +11690,9 @@ const WN=jN.compose({baseName:"text-area",baseClass:ho,template:()=>Z`
|
|
|
11665
11690
|
></${hm}>
|
|
11666
11691
|
${Qm}
|
|
11667
11692
|
</div>
|
|
11668
|
-
`,styles:
|
|
11669
|
-
wi.getOrCreate().withPrefix("nimble").register(
|
|
11670
|
-
const
|
|
11693
|
+
`,styles:WN,shadowOptions:{delegatesFocus:!0}})
|
|
11694
|
+
wi.getOrCreate().withPrefix("nimble").register(GN())
|
|
11695
|
+
const KN="underline",JN="outline",XN="block",YN="frameless",QN=xt`
|
|
11671
11696
|
${Oo("inline-block")}
|
|
11672
11697
|
${rg}
|
|
11673
11698
|
|
|
@@ -11839,12 +11864,12 @@ const ZN="underline",GN="outline",KN="block",JN="frameless",XN=xt`
|
|
|
11839
11864
|
slot[name='actions']::slotted(*) {
|
|
11840
11865
|
${il.cssCustomProperty}: 24px;
|
|
11841
11866
|
}
|
|
11842
|
-
`.withBehaviors(sh(
|
|
11867
|
+
`.withBehaviors(sh(KN,xt`
|
|
11843
11868
|
.root {
|
|
11844
11869
|
border-bottom-width: ${cl};
|
|
11845
11870
|
padding-bottom: 0;
|
|
11846
11871
|
}
|
|
11847
|
-
`),sh(
|
|
11872
|
+
`),sh(XN,xt`
|
|
11848
11873
|
.root {
|
|
11849
11874
|
background-color: rgba(${Ha}, 0.1);
|
|
11850
11875
|
}
|
|
@@ -11872,12 +11897,12 @@ const ZN="underline",GN="outline",KN="block",JN="frameless",XN=xt`
|
|
|
11872
11897
|
:host([disabled]) .root {
|
|
11873
11898
|
background-color: rgba(${Ha}, 0.07);
|
|
11874
11899
|
}
|
|
11875
|
-
`),sh(
|
|
11900
|
+
`),sh(JN,xt`
|
|
11876
11901
|
.root {
|
|
11877
11902
|
border-width: ${cl};
|
|
11878
11903
|
padding: 0;
|
|
11879
11904
|
}
|
|
11880
|
-
`),sh(
|
|
11905
|
+
`),sh(YN,xt`
|
|
11881
11906
|
.control {
|
|
11882
11907
|
padding-left: ${cl};
|
|
11883
11908
|
padding-right: ${cl};
|
|
@@ -11895,8 +11920,8 @@ const ZN="underline",GN="outline",KN="block",JN="frameless",XN=xt`
|
|
|
11895
11920
|
filter: invert(100%);
|
|
11896
11921
|
}
|
|
11897
11922
|
`))
|
|
11898
|
-
class
|
|
11899
|
-
const
|
|
11923
|
+
class tP extends Vi{constructor(){super(...arguments),this.appearance=KN,this.errorVisible=!1,this.fullBleed=!1}}t([lt],tP.prototype,"appearance",void 0),t([lt({attribute:"error-text"})],tP.prototype,"errorText",void 0),t([lt({attribute:"error-visible",mode:"boolean"})],tP.prototype,"errorVisible",void 0),t([lt({attribute:"full-bleed",mode:"boolean"})],tP.prototype,"fullBleed",void 0)
|
|
11924
|
+
const eP=tP.compose({baseName:"text-field",baseClass:Vi,template:(t,e)=>Z`
|
|
11900
11925
|
<template
|
|
11901
11926
|
class="
|
|
11902
11927
|
${t=>t.readOnly?"readonly":""}
|
|
@@ -11956,7 +11981,7 @@ const QN=YN.compose({baseName:"text-field",baseClass:Vi,template:(t,e)=>Z`
|
|
|
11956
11981
|
${ee(0,e)}
|
|
11957
11982
|
</div>
|
|
11958
11983
|
</template>
|
|
11959
|
-
`,styles:
|
|
11984
|
+
`,styles:QN,shadowOptions:{delegatesFocus:!0},end:Z`
|
|
11960
11985
|
<${hm}
|
|
11961
11986
|
severity="error"
|
|
11962
11987
|
class="error-icon"
|
|
@@ -11966,8 +11991,8 @@ const QN=YN.compose({baseName:"text-field",baseClass:Vi,template:(t,e)=>Z`
|
|
|
11966
11991
|
</span>
|
|
11967
11992
|
${Qm}
|
|
11968
11993
|
`})
|
|
11969
|
-
wi.getOrCreate().withPrefix("nimble").register(
|
|
11970
|
-
const
|
|
11994
|
+
wi.getOrCreate().withPrefix("nimble").register(eP())
|
|
11995
|
+
const nP=xt`
|
|
11971
11996
|
${Oo("inline-flex")}
|
|
11972
11997
|
|
|
11973
11998
|
:host {
|
|
@@ -12052,7 +12077,7 @@ const tP=xt`
|
|
|
12052
12077
|
.status-icon {
|
|
12053
12078
|
opacity: 0.6;
|
|
12054
12079
|
}
|
|
12055
|
-
`)),
|
|
12080
|
+
`)),iP=Z`
|
|
12056
12081
|
${Ht((t=>t.tooltipVisible),Z`
|
|
12057
12082
|
<${Eh}
|
|
12058
12083
|
class="anchored-region"
|
|
@@ -12085,11 +12110,11 @@ const tP=xt`
|
|
|
12085
12110
|
</${Eh}>
|
|
12086
12111
|
`)}
|
|
12087
12112
|
`
|
|
12088
|
-
class
|
|
12089
|
-
const
|
|
12090
|
-
wi.getOrCreate().withPrefix("nimble").register(
|
|
12091
|
-
const
|
|
12092
|
-
class
|
|
12113
|
+
class oP extends Io{constructor(){super(...arguments),this.iconVisible=!1}}t([lt],oP.prototype,"severity",void 0),t([lt({attribute:"icon-visible",mode:"boolean"})],oP.prototype,"iconVisible",void 0)
|
|
12114
|
+
const sP=oP.compose({baseName:"tooltip",baseClass:Io,template:iP,styles:nP})
|
|
12115
|
+
wi.getOrCreate().withPrefix("nimble").register(sP())
|
|
12116
|
+
const rP="group-selected",aP="all",lP="leaves-only",cP="none"
|
|
12117
|
+
class dP{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=null}handleChange({target:t,token:e}){this.attach(e.getValueFor(t))}attach(t){this.attached!==this[t]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[t],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const hP=xt`
|
|
12093
12118
|
${Oo("block")}
|
|
12094
12119
|
|
|
12095
12120
|
:host {
|
|
@@ -12110,7 +12135,7 @@ class lP{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=nu
|
|
|
12110
12135
|
}
|
|
12111
12136
|
|
|
12112
12137
|
${""}
|
|
12113
|
-
:host([${
|
|
12138
|
+
:host([${rP}])::after {
|
|
12114
12139
|
background: ${Wa};
|
|
12115
12140
|
border-radius: 0px;
|
|
12116
12141
|
content: '';
|
|
@@ -12132,7 +12157,7 @@ class lP{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=nu
|
|
|
12132
12157
|
background: ${za};
|
|
12133
12158
|
}
|
|
12134
12159
|
|
|
12135
|
-
:host([${
|
|
12160
|
+
:host([${rP}]) .positioning-region:hover {
|
|
12136
12161
|
background: ${La};
|
|
12137
12162
|
}
|
|
12138
12163
|
|
|
@@ -12238,7 +12263,7 @@ class lP{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=nu
|
|
|
12238
12263
|
display: block;
|
|
12239
12264
|
}
|
|
12240
12265
|
`.withBehaviors(new class{constructor(t,e){this.cache=new WeakMap,this.ltr=t,this.rtl=e}bind(t){this.attach(t)}unbind(t){const e=this.cache.get(t)
|
|
12241
|
-
e&&Ea.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new
|
|
12266
|
+
e&&Ea.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new dP(this.ltr,this.rtl,t),n=Ea.getValueFor(t)
|
|
12242
12267
|
Ea.subscribe(e),e.attach(n),this.cache.set(t,e)}}(xt`
|
|
12243
12268
|
.expand-collapse-button {
|
|
12244
12269
|
left: var(
|
|
@@ -12270,8 +12295,8 @@ Ea.subscribe(e),e.attach(n),this.cache.set(t,e)}}(xt`
|
|
|
12270
12295
|
transform: rotate(135deg);
|
|
12271
12296
|
}
|
|
12272
12297
|
`))
|
|
12273
|
-
class
|
|
12274
|
-
const
|
|
12298
|
+
class uP extends Ao{constructor(){super(...arguments),this.groupSelected=!1}}t([lt({attribute:"group-selected",mode:"boolean"})],uP.prototype,"groupSelected",void 0)
|
|
12299
|
+
const pP=uP.compose({baseName:"tree-item",baseClass:Ao,template:(t,e)=>Z`
|
|
12275
12300
|
<template
|
|
12276
12301
|
role="treeitem"
|
|
12277
12302
|
slot="${t=>t.isNestedItem()?"item":void 0}"
|
|
@@ -12311,9 +12336,9 @@ const hP=dP.compose({baseName:"tree-item",baseClass:Ao,template:(t,e)=>Z`
|
|
|
12311
12336
|
</div>
|
|
12312
12337
|
`)}
|
|
12313
12338
|
</template>
|
|
12314
|
-
`,styles:
|
|
12315
|
-
wi.getOrCreate().withPrefix("nimble").register(
|
|
12316
|
-
const
|
|
12339
|
+
`,styles:hP,expandCollapseGlyph:qh.data})
|
|
12340
|
+
wi.getOrCreate().withPrefix("nimble").register(pP())
|
|
12341
|
+
const fP=xt`
|
|
12317
12342
|
${Oo("flex")}
|
|
12318
12343
|
|
|
12319
12344
|
:host {
|
|
@@ -12325,7 +12350,7 @@ const uP=xt`
|
|
|
12325
12350
|
:host(${No}) {
|
|
12326
12351
|
outline: none;
|
|
12327
12352
|
}
|
|
12328
|
-
`,
|
|
12353
|
+
`,mP=Z`
|
|
12329
12354
|
<template
|
|
12330
12355
|
role="tree"
|
|
12331
12356
|
${Pt("treeView")}
|
|
@@ -12339,246 +12364,246 @@ const uP=xt`
|
|
|
12339
12364
|
<slot ${Xt("slottedTreeItems")}></slot>
|
|
12340
12365
|
</template>
|
|
12341
12366
|
`
|
|
12342
|
-
class
|
|
12367
|
+
class gP extends To{constructor(){super(...arguments),this.selectionMode=aP,this.selectedItems=[]}handleClick(t){if(t.defaultPrevented)return!1
|
|
12343
12368
|
if(!(t.target instanceof Element&&Do(t.target)))return!0
|
|
12344
12369
|
const e=t.target
|
|
12345
|
-
return!e.disabled&&(this.canSelect(e)?e.selected=!0:this.itemHasChildren(e)&&(e.expanded=!e.expanded),!0)}canSelect(t){switch(this.selectionMode){case
|
|
12346
|
-
case
|
|
12347
|
-
case
|
|
12348
|
-
default:return!0}}itemHasChildren(t){return null!==t.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const t of Array.from(this.children))t instanceof
|
|
12370
|
+
return!e.disabled&&(this.canSelect(e)?e.selected=!0:this.itemHasChildren(e)&&(e.expanded=!e.expanded),!0)}canSelect(t){switch(this.selectionMode){case aP:return!0
|
|
12371
|
+
case cP:return!1
|
|
12372
|
+
case lP:return!this.itemHasChildren(t)
|
|
12373
|
+
default:return!0}}itemHasChildren(t){return null!==t.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const t of Array.from(this.children))t instanceof uP&&(t.groupSelected=!1)
|
|
12349
12374
|
for(let t of this.selectedItems){for(;null!==t.parentElement&&t.parentElement!==this;)t=t.parentElement
|
|
12350
|
-
t instanceof
|
|
12351
|
-
const
|
|
12352
|
-
wi.getOrCreate().withPrefix("nimble").register(
|
|
12353
|
-
const
|
|
12354
|
-
class
|
|
12355
|
-
this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(e,this.locale),this.scaledPrefixText=n}static createFactory(t){return e=>new
|
|
12375
|
+
t instanceof uP&&(t.groupSelected=!0)}}}t([lt({attribute:"selection-mode"})],gP.prototype,"selectionMode",void 0),t([g],gP.prototype,"selectedItems",void 0)
|
|
12376
|
+
const vP=gP.compose({baseName:"tree-view",baseClass:To,template:mP,styles:fP})
|
|
12377
|
+
wi.getOrCreate().withPrefix("nimble").register(vP())
|
|
12378
|
+
const bP=Z`<template slot="unit"></template>`
|
|
12379
|
+
class yP{constructor(t,e,n){this.singular=t,this.plural=e,this.symbol=n}}class wP extends rN{constructor(t,{unitTranslations:e,scaledPrefixText:n}){if(super(t),!e.get("en"))throw new Error('English translations must exist with locale string "en"')
|
|
12380
|
+
this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(e,this.locale),this.scaledPrefixText=n}static createFactory(t){return e=>new wP(e,t)}format(t){const e=this.formatter.format(t)
|
|
12356
12381
|
if(""!==this.scaledPrefixText)return`${e} ${this.scaledPrefixText}${this.unitTranslation.symbol}`
|
|
12357
12382
|
return`${e} ${"one"===this.pluralRules.select(t)?this.unitTranslation.singular:this.unitTranslation.plural}`}getTranslationToUse(t,e){const n=new Intl.Locale(e??"en"),i=n.language,o=n.region
|
|
12358
|
-
return(o?t.get(`${i}-${o}`):void 0)??t.get(i)??t.get("en")}}const
|
|
12359
|
-
const
|
|
12360
|
-
const
|
|
12361
|
-
class
|
|
12362
|
-
const
|
|
12363
|
-
wi.getOrCreate().withPrefix("nimble").register(
|
|
12364
|
-
const
|
|
12365
|
-
const
|
|
12366
|
-
const
|
|
12367
|
-
wi.getOrCreate().withPrefix("nimble").register(
|
|
12368
|
-
var
|
|
12369
|
-
function
|
|
12370
|
-
i[t]=[]}return new
|
|
12371
|
-
break}return null!=n&&t.push({name:e,value:n}),t}
|
|
12383
|
+
return(o?t.get(`${i}-${o}`):void 0)??t.get(i)??t.get("en")}}const xP=new Map([["en",new yP("byte","bytes","B")],["fr",new yP("octet","octets","o")],["de",new yP("Byte","Byte","B")],["ja",new yP("バイト","バイト","B")],["zh",new yP("字节","字节","B")]]),CP=[[1,""],[1024,"Ki"],[1048576,"Mi"],[1024**3,"Gi"],[1024**4,"Ti"],[1024**5,"Pi"]]
|
|
12384
|
+
const kP=new class extends cN{constructor(){super(CP.map((([t,e])=>new lN(t,wP.createFactory({unitTranslations:xP,scaledPrefixText:e})))))}},SP=[[1,"byte","long"],[1e3,"kilobyte","short"],[1e6,"megabyte","short"],[1e3**3,"gigabyte","short"],[1e3**4,"terabyte","short"],[1e3**5,"petabyte","short"]]
|
|
12385
|
+
const $P=new class extends cN{constructor(){super(SP.map((([t,e,n])=>new lN(t,aN.createFactory({style:"unit",unit:e,unitDisplay:n})))))}}
|
|
12386
|
+
class MP extends vN{constructor(){super(),this.binary=!1,this.resolvedUnitScale=$P}binaryChanged(){this.resolvedUnitScale=this.binary?kP:$P}}t([lt({mode:"boolean"})],MP.prototype,"binary",void 0)
|
|
12387
|
+
const _P=MP.compose({baseName:"unit-byte",template:bP})
|
|
12388
|
+
wi.getOrCreate().withPrefix("nimble").register(_P())
|
|
12389
|
+
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 yP("volt","volts","V")],["fr",new yP("volt","volts","V")],["de",new yP("Volt","Volt","V")],["ja",new yP("ボルト","ボルト","V")],["zh",new yP("伏特","伏特","V")]])
|
|
12390
|
+
const DP=new class extends cN{constructor(){super(EP.map((([t,e])=>new lN(t,wP.createFactory({unitTranslations:IP,scaledPrefixText:e})))))}}
|
|
12391
|
+
const AP=class extends vN{constructor(){super(),this.resolvedUnitScale=DP}}.compose({baseName:"unit-volt",template:bP})
|
|
12392
|
+
wi.getOrCreate().withPrefix("nimble").register(AP())
|
|
12393
|
+
var TP={value:()=>{}}
|
|
12394
|
+
function OP(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t)
|
|
12395
|
+
i[t]=[]}return new RP(i)}function RP(t){this._=t}function FP(t,e){for(var n,i=0,o=t.length;i<o;++i)if((n=t[i]).name===e)return n.value}function NP(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=TP,t=t.slice(0,i).concat(t.slice(i+1))
|
|
12396
|
+
break}return null!=n&&t.push({name:e,value:n}),t}RP.prototype=OP.prototype={constructor:RP,on:function(t,e){var n,i,o=this._,s=(i=o,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".")
|
|
12372
12397
|
if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!i.hasOwnProperty(t))throw new Error("unknown type: "+t)
|
|
12373
12398
|
return{type:t,name:e}}))),r=-1,a=s.length
|
|
12374
12399
|
if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e)
|
|
12375
|
-
for(;++r<a;)if(n=(t=s[r]).type)o[n]=
|
|
12376
|
-
else if(null==e)for(n in o)o[n]=
|
|
12377
|
-
return this}for(;++r<a;)if((n=(t=s[r]).type)&&(n=
|
|
12400
|
+
for(;++r<a;)if(n=(t=s[r]).type)o[n]=NP(o[n],t.name,e)
|
|
12401
|
+
else if(null==e)for(n in o)o[n]=NP(o[n],t.name,null)
|
|
12402
|
+
return this}for(;++r<a;)if((n=(t=s[r]).type)&&(n=FP(o[n],t.name)))return n},copy:function(){var t={},e=this._
|
|
12378
12403
|
for(var n in e)t[n]=e[n].slice()
|
|
12379
|
-
return new
|
|
12404
|
+
return new RP(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,o=new Array(n),s=0;s<n;++s)o[s]=arguments[s+2]
|
|
12380
12405
|
if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t)
|
|
12381
12406
|
for(s=0,n=(i=this._[t]).length;s<n;++s)i[s].value.apply(e,o)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t)
|
|
12382
12407
|
for(var i=this._[t],o=0,s=i.length;o<s;++o)i[o].value.apply(e,n)}}
|
|
12383
|
-
var
|
|
12384
|
-
function
|
|
12385
|
-
return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),
|
|
12386
|
-
return n===
|
|
12387
|
-
return(e.local?
|
|
12388
|
-
var e}}function
|
|
12389
|
-
function
|
|
12390
|
-
function
|
|
12391
|
-
for(;a<l;++a)(r=e[a])&&(o[a]=r)}function
|
|
12408
|
+
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/"}
|
|
12409
|
+
function zP(t){var e=t+="",n=e.indexOf(":")
|
|
12410
|
+
return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),LP.hasOwnProperty(e)?{space:LP[e],local:t}:t}function VP(t){return function(){var e=this.ownerDocument,n=this.namespaceURI
|
|
12411
|
+
return n===PP&&e.documentElement.namespaceURI===PP?e.createElement(t):e.createElementNS(n,t)}}function HP(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function BP(t){var e=zP(t)
|
|
12412
|
+
return(e.local?HP:VP)(e)}function qP(){}function UP(t){return null==t?qP:function(){return this.querySelector(t)}}function jP(){return[]}function WP(t){return null==t?jP:function(){return this.querySelectorAll(t)}}function ZP(t){return function(){return null==(e=t.apply(this,arguments))?[]:Array.isArray(e)?e:Array.from(e)
|
|
12413
|
+
var e}}function GP(t){return function(){return this.matches(t)}}function KP(t){return function(e){return e.matches(t)}}var JP=Array.prototype.find
|
|
12414
|
+
function XP(){return this.firstElementChild}var YP=Array.prototype.filter
|
|
12415
|
+
function QP(){return Array.from(this.children)}function tL(t){return new Array(t.length)}function eL(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function nL(t,e,n,i,o,s){for(var r,a=0,l=e.length,c=s.length;a<c;++a)(r=e[a])?(r.__data__=s[a],i[a]=r):n[a]=new eL(t,s[a])
|
|
12416
|
+
for(;a<l;++a)(r=e[a])&&(o[a]=r)}function iL(t,e,n,i,o,s,r){var a,l,c,d=new Map,h=e.length,u=s.length,p=new Array(h)
|
|
12392
12417
|
for(a=0;a<h;++a)(l=e[a])&&(p[a]=c=r.call(l,l.__data__,a,e)+"",d.has(c)?o[a]=l:d.set(c,l))
|
|
12393
|
-
for(a=0;a<u;++a)c=r.call(t,s[a],a,s)+"",(l=d.get(c))?(i[a]=l,l.__data__=s[a],d.delete(c)):n[a]=new
|
|
12394
|
-
for(a=0;a<h;++a)(l=e[a])&&d.get(p[a])===l&&(o[a]=l)}function
|
|
12395
|
-
null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function
|
|
12396
|
-
null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function
|
|
12397
|
-
null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function
|
|
12398
|
-
null==n?delete this[t]:this[t]=n}}function
|
|
12399
|
-
this.textContent=null==e?"":e}}function
|
|
12400
|
-
this.innerHTML=null==e?"":e}}function
|
|
12401
|
-
t&&t.removeChild(this)}function
|
|
12402
|
-
return e?e.insertBefore(t,this.nextSibling):t}function
|
|
12403
|
-
return e?e.insertBefore(t,this.nextSibling):t}function
|
|
12404
|
-
if(e){for(var n,i=0,o=-1,s=e.length;i<s;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?e.length=o:delete this.__on}}}function
|
|
12418
|
+
for(a=0;a<u;++a)c=r.call(t,s[a],a,s)+"",(l=d.get(c))?(i[a]=l,l.__data__=s[a],d.delete(c)):n[a]=new eL(t,s[a])
|
|
12419
|
+
for(a=0;a<h;++a)(l=e[a])&&d.get(p[a])===l&&(o[a]=l)}function oL(t){return t.__data__}function sL(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function rL(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function aL(t){return function(){this.removeAttribute(t)}}function lL(t){return function(){this.removeAttributeNS(t.space,t.local)}}function cL(t,e){return function(){this.setAttribute(t,e)}}function dL(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function hL(t,e){return function(){var n=e.apply(this,arguments)
|
|
12420
|
+
null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function uL(t,e){return function(){var n=e.apply(this,arguments)
|
|
12421
|
+
null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function pL(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function fL(t){return function(){this.style.removeProperty(t)}}function mL(t,e,n){return function(){this.style.setProperty(t,e,n)}}function gL(t,e,n){return function(){var i=e.apply(this,arguments)
|
|
12422
|
+
null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function vL(t,e){return t.style.getPropertyValue(e)||pL(t).getComputedStyle(t,null).getPropertyValue(e)}function bL(t){return function(){delete this[t]}}function yL(t,e){return function(){this[t]=e}}function wL(t,e){return function(){var n=e.apply(this,arguments)
|
|
12423
|
+
null==n?delete this[t]:this[t]=n}}function xL(t){return t.trim().split(/^|\s+/)}function CL(t){return t.classList||new kL(t)}function kL(t){this._node=t,this._names=xL(t.getAttribute("class")||"")}function SL(t,e){for(var n=CL(t),i=-1,o=e.length;++i<o;)n.add(e[i])}function $L(t,e){for(var n=CL(t),i=-1,o=e.length;++i<o;)n.remove(e[i])}function ML(t){return function(){SL(this,t)}}function _L(t){return function(){$L(this,t)}}function EL(t,e){return function(){(e.apply(this,arguments)?SL:$L)(this,t)}}function IL(){this.textContent=""}function DL(t){return function(){this.textContent=t}}function AL(t){return function(){var e=t.apply(this,arguments)
|
|
12424
|
+
this.textContent=null==e?"":e}}function TL(){this.innerHTML=""}function OL(t){return function(){this.innerHTML=t}}function RL(t){return function(){var e=t.apply(this,arguments)
|
|
12425
|
+
this.innerHTML=null==e?"":e}}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 t=this.parentNode
|
|
12426
|
+
t&&t.removeChild(this)}function zL(){var t=this.cloneNode(!1),e=this.parentNode
|
|
12427
|
+
return e?e.insertBefore(t,this.nextSibling):t}function VL(){var t=this.cloneNode(!0),e=this.parentNode
|
|
12428
|
+
return e?e.insertBefore(t,this.nextSibling):t}function HL(t){return function(){var e=this.__on
|
|
12429
|
+
if(e){for(var n,i=0,o=-1,s=e.length;i<s;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?e.length=o:delete this.__on}}}function BL(t,e,n){return function(){var i,o=this.__on,s=function(t){return function(e){t.call(this,e,this.__data__)}}(e)
|
|
12405
12430
|
if(o)for(var r=0,a=o.length;r<a;++r)if((i=o[r]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),void(i.value=e)
|
|
12406
|
-
this.addEventListener(t.type,s,n),i={type:t.type,name:t.name,value:e,listener:s,options:n},o?o.push(i):this.__on=[i]}}function
|
|
12407
|
-
"function"==typeof o?o=new o(e,n):(o=i.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function
|
|
12431
|
+
this.addEventListener(t.type,s,n),i={type:t.type,name:t.name,value:e,listener:s,options:n},o?o.push(i):this.__on=[i]}}function qL(t,e,n){var i=pL(t),o=i.CustomEvent
|
|
12432
|
+
"function"==typeof o?o=new o(e,n):(o=i.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function UL(t,e){return function(){return qL(this,t,e)}}function jL(t,e){return function(){return qL(this,t,e.apply(this,arguments))}}eL.prototype={constructor:eL,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},kL.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t)
|
|
12408
12433
|
e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}}
|
|
12409
|
-
var
|
|
12410
|
-
function
|
|
12434
|
+
var WL=[null]
|
|
12435
|
+
function ZL(t,e){this._groups=t,this._parents=e}function GL(){return new ZL([[document.documentElement]],WL)}function KL(t){return"string"==typeof t?new ZL([[document.querySelector(t)]],[document.documentElement]):new ZL([[t]],WL)}function JL(t,e){if(t=function(t){let e
|
|
12411
12436
|
for(;e=t.sourceEvent;)t=e
|
|
12412
12437
|
return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e
|
|
12413
12438
|
if(n.createSVGPoint){var i=n.createSVGPoint()
|
|
12414
12439
|
return i.x=t.clientX,i.y=t.clientY,[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect()
|
|
12415
|
-
return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}
|
|
12440
|
+
return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}ZL.prototype=GL.prototype={constructor:ZL,select:function(t){"function"!=typeof t&&(t=UP(t))
|
|
12416
12441
|
for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var s,r,a=e[o],l=a.length,c=i[o]=new Array(l),d=0;d<l;++d)(s=a[d])&&(r=t.call(s,s.__data__,d,a))&&("__data__"in s&&(r.__data__=s.__data__),c[d]=r)
|
|
12417
|
-
return new
|
|
12442
|
+
return new ZL(i,this._parents)},selectAll:function(t){t="function"==typeof t?ZP(t):WP(t)
|
|
12418
12443
|
for(var e=this._groups,n=e.length,i=[],o=[],s=0;s<n;++s)for(var r,a=e[s],l=a.length,c=0;c<l;++c)(r=a[c])&&(i.push(t.call(r,r.__data__,c,a)),o.push(r))
|
|
12419
|
-
return new
|
|
12444
|
+
return new ZL(i,o)},selectChild:function(t){return this.select(null==t?XP:function(t){return function(){return JP.call(this.children,t)}}("function"==typeof t?t:KP(t)))},selectChildren:function(t){return this.selectAll(null==t?QP:function(t){return function(){return YP.call(this.children,t)}}("function"==typeof t?t:KP(t)))},filter:function(t){"function"!=typeof t&&(t=GP(t))
|
|
12420
12445
|
for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var s,r=e[o],a=r.length,l=i[o]=[],c=0;c<a;++c)(s=r[c])&&t.call(s,s.__data__,c,r)&&l.push(s)
|
|
12421
|
-
return new
|
|
12422
|
-
var n,i=e?
|
|
12446
|
+
return new ZL(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,oL)
|
|
12447
|
+
var n,i=e?iL:nL,o=this._parents,s=this._groups
|
|
12423
12448
|
"function"!=typeof t&&(n=t,t=function(){return n})
|
|
12424
|
-
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=
|
|
12449
|
+
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(t.call(h,h&&h.__data__,d,o)),m=f.length,g=l[d]=new Array(m),v=a[d]=new Array(m)
|
|
12425
12450
|
i(h,u,g,v,c[d]=new Array(p),f,e)
|
|
12426
|
-
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
|
|
12451
|
+
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 ZL(a,o))._enter=l,a._exit=c,a},enter:function(){return new ZL(this._enter||this._groups.map(tL),this._parents)},exit:function(){return new ZL(this._exit||this._groups.map(tL),this._parents)},join:function(t,e,n){var i=this.enter(),o=this,s=this.exit()
|
|
12427
12452
|
return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=e&&(o=e(o))&&(o=o.selection()),null==n?s.remove():n(s),i&&o?i.merge(o).order():o},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._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)
|
|
12428
12453
|
for(;l<o;++l)a[l]=n[l]
|
|
12429
|
-
return new
|
|
12430
|
-
return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=
|
|
12454
|
+
return new ZL(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,o=t[e],s=o.length-1,r=o[s];--s>=0;)(i=o[s])&&(r&&4^i.compareDocumentPosition(r)&&r.parentNode.insertBefore(i,r),r=i)
|
|
12455
|
+
return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=rL)
|
|
12431
12456
|
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)
|
|
12432
|
-
c.sort(e)}return new
|
|
12457
|
+
c.sort(e)}return new ZL(o,this._parents).order()},call:function(){var t=arguments[0]
|
|
12433
12458
|
return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],o=0,s=i.length;o<s;++o){var r=i[o]
|
|
12434
12459
|
if(r)return r}return null},size:function(){let t=0
|
|
12435
12460
|
for(const e of this)++t
|
|
12436
12461
|
return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var o,s=e[n],r=0,a=s.length;r<a;++r)(o=s[r])&&t.call(o,o.__data__,r,s)
|
|
12437
|
-
return this},attr:function(t,e){var n=
|
|
12462
|
+
return this},attr:function(t,e){var n=zP(t)
|
|
12438
12463
|
if(arguments.length<2){var i=this.node()
|
|
12439
|
-
return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?
|
|
12440
|
-
if(arguments.length<2){for(var i=
|
|
12441
|
-
return!0}return this.each(("function"==typeof e?
|
|
12442
|
-
return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:
|
|
12443
|
-
return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(
|
|
12464
|
+
return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?lL:aL:"function"==typeof e?n.local?uL:hL:n.local?dL:cL)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?fL:"function"==typeof e?gL:mL)(t,e,null==n?"":n)):vL(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?bL:"function"==typeof e?wL:yL)(t,e)):this.node()[t]},classed:function(t,e){var n=xL(t+"")
|
|
12465
|
+
if(arguments.length<2){for(var i=CL(this.node()),o=-1,s=n.length;++o<s;)if(!i.contains(n[o]))return!1
|
|
12466
|
+
return!0}return this.each(("function"==typeof e?EL:e?ML:_L)(n,e))},text:function(t){return arguments.length?this.each(null==t?IL:("function"==typeof t?AL:DL)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?TL:("function"==typeof t?RL:OL)(t)):this.node().innerHTML},raise:function(){return this.each(FL)},lower:function(){return this.each(NL)},append:function(t){var e="function"==typeof t?t:BP(t)
|
|
12467
|
+
return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:BP(t),i=null==e?PL:"function"==typeof e?e:UP(e)
|
|
12468
|
+
return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(LL)},clone:function(t){return this.select(t?VL:zL)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,o,s=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".")
|
|
12444
12469
|
return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),r=s.length
|
|
12445
|
-
if(!(arguments.length<2)){for(a=e?
|
|
12470
|
+
if(!(arguments.length<2)){for(a=e?BL:HL,i=0;i<r;++i)this.each(a(s[i],e,n))
|
|
12446
12471
|
return this}var a=this.node().__on
|
|
12447
|
-
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(t,e){return this.each(("function"==typeof e?
|
|
12448
|
-
const
|
|
12449
|
-
function
|
|
12472
|
+
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(t,e){return this.each(("function"==typeof e?jL:UL)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i,o=t[e],s=0,r=o.length;s<r;++s)(i=o[s])&&(yield i)}}
|
|
12473
|
+
const XL={capture:!0,passive:!1}
|
|
12474
|
+
function YL(t){t.preventDefault(),t.stopImmediatePropagation()}function QL(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function tz(t,e){var n=Object.create(t.prototype)
|
|
12450
12475
|
for(var i in e)n[i]=e[i]
|
|
12451
|
-
return n}function
|
|
12452
|
-
function
|
|
12453
|
-
return t=(t+"").trim().toLowerCase(),(e=
|
|
12454
|
-
var o}function
|
|
12455
|
-
return`${1===t?"rgb(":"rgba("}${
|
|
12456
|
-
if(t instanceof
|
|
12457
|
-
if(t instanceof
|
|
12476
|
+
return n}function ez(){}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}
|
|
12477
|
+
function mz(){return this.rgb().formatHex()}function gz(){return this.rgb().formatRgb()}function vz(t){var e,n
|
|
12478
|
+
return t=(t+"").trim().toLowerCase(),(e=az.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?bz(e):3===n?new xz(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?yz(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?yz(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=lz.exec(t))?new xz(e[1],e[2],e[3],1):(e=cz.exec(t))?new xz(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=dz.exec(t))?yz(e[1],e[2],e[3],e[4]):(e=hz.exec(t))?yz(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=uz.exec(t))?_z(e[1],e[2]/100,e[3]/100,1):(e=pz.exec(t))?_z(e[1],e[2]/100,e[3]/100,e[4]):fz.hasOwnProperty(t)?bz(fz[t]):"transparent"===t?new xz(NaN,NaN,NaN,0):null}function bz(t){return new xz(t>>16&255,t>>8&255,255&t,1)}function yz(t,e,n,i){return i<=0&&(t=e=n=NaN),new xz(t,e,n,i)}function wz(t,e,n,i){return 1===arguments.length?((o=t)instanceof ez||(o=vz(o)),o?new xz((o=o.rgb()).r,o.g,o.b,o.opacity):new xz):new xz(t,e,n,null==i?1:i)
|
|
12479
|
+
var o}function xz(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function Cz(){return`#${Mz(this.r)}${Mz(this.g)}${Mz(this.b)}`}function kz(){const t=Sz(this.opacity)
|
|
12480
|
+
return`${1===t?"rgb(":"rgba("}${$z(this.r)}, ${$z(this.g)}, ${$z(this.b)}${1===t?")":`, ${t})`}`}function Sz(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function $z(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Mz(t){return((t=$z(t))<16?"0":"")+t.toString(16)}function _z(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Iz(t,e,n,i)}function Ez(t){if(t instanceof Iz)return new Iz(t.h,t.s,t.l,t.opacity)
|
|
12481
|
+
if(t instanceof ez||(t=vz(t)),!t)return new Iz
|
|
12482
|
+
if(t instanceof Iz)return t
|
|
12458
12483
|
var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,o=Math.min(e,n,i),s=Math.max(e,n,i),r=NaN,a=s-o,l=(s+o)/2
|
|
12459
|
-
return a?(r=e===s?(n-i)/a+6*(n<i):n===s?(i-e)/a+2:(e-n)/a+4,a/=l<.5?s+o:2-s-o,r*=60):a=l>0&&l<1?0:r,new
|
|
12460
|
-
return new
|
|
12461
|
-
return`${1===t?"hsl(":"hsla("}${
|
|
12462
|
-
var
|
|
12463
|
-
function
|
|
12464
|
-
return n?function(t,e){return function(n){return t+n*e}}(t,n):
|
|
12465
|
-
function i(t,e){var i=n((t=
|
|
12484
|
+
return a?(r=e===s?(n-i)/a+6*(n<i):n===s?(i-e)/a+2:(e-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,t.opacity)}function Iz(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Dz(t){return(t=(t||0)%360)<0?t+360:t}function Az(t){return Math.max(0,Math.min(1,t||0))}function Tz(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}QL(ez,vz,{copy(t){return Object.assign(new this.constructor,this,t)},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,tz(ez,{brighter(t){return t=null==t?iz:Math.pow(iz,t),new xz(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?nz:Math.pow(nz,t),new xz(this.r*t,this.g*t,this.b*t,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(t,e,n,i){return 1===arguments.length?Ez(t):new Iz(t,e,n,null==i?1:i)}),tz(ez,{brighter(t){return t=null==t?iz:Math.pow(iz,t),new Iz(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?nz:Math.pow(nz,t),new Iz(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,o=2*n-i
|
|
12485
|
+
return new xz(Tz(t>=240?t-240:t+120,o,i),Tz(t,o,i),Tz(t<120?t+240:t-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 t=Sz(this.opacity)
|
|
12486
|
+
return`${1===t?"hsl(":"hsla("}${Dz(this.h)}, ${100*Az(this.s)}%, ${100*Az(this.l)}%${1===t?")":`, ${t})`}`}}))
|
|
12487
|
+
var Oz=t=>()=>t
|
|
12488
|
+
function Rz(t){return 1==(t=+t)?Fz:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Oz(isNaN(e)?n:e)}}function Fz(t,e){var n=e-t
|
|
12489
|
+
return n?function(t,e){return function(n){return t+n*e}}(t,n):Oz(isNaN(t)?e:t)}var Nz=function t(e){var n=Rz(e)
|
|
12490
|
+
function i(t,e){var i=n((t=wz(t)).r,(e=wz(e)).r),o=n(t.g,e.g),s=n(t.b,e.b),r=Fz(t.opacity,e.opacity)
|
|
12466
12491
|
return function(e){return t.r=i(e),t.g=o(e),t.b=s(e),t.opacity=r(e),t+""}}return i.gamma=t,i}(1)
|
|
12467
|
-
function
|
|
12492
|
+
function Pz(t,e){e||(e=[])
|
|
12468
12493
|
var n,i=t?Math.min(e.length,t.length):0,o=e.slice()
|
|
12469
12494
|
return function(s){for(n=0;n<i;++n)o[n]=t[n]*(1-s)+e[n]*s
|
|
12470
|
-
return o}}function
|
|
12471
|
-
for(n=0;n<o;++n)s[n]=
|
|
12495
|
+
return o}}function Lz(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,s=new Array(o),r=new Array(i)
|
|
12496
|
+
for(n=0;n<o;++n)s[n]=jz(t[n],e[n])
|
|
12472
12497
|
for(;n<i;++n)r[n]=e[n]
|
|
12473
12498
|
return function(t){for(n=0;n<o;++n)r[n]=s[n](t)
|
|
12474
|
-
return r}}function
|
|
12475
|
-
return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function
|
|
12476
|
-
for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=
|
|
12499
|
+
return r}}function zz(t,e){var n=new Date
|
|
12500
|
+
return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function Vz(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Hz(t,e){var n,i={},o={}
|
|
12501
|
+
for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=jz(t[n],e[n]):o[n]=e[n]
|
|
12477
12502
|
return function(t){for(n in i)o[n]=i[n](t)
|
|
12478
|
-
return o}}var
|
|
12479
|
-
function
|
|
12480
|
-
for(t+="",e+="";(n=
|
|
12503
|
+
return o}}var Bz=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qz=new RegExp(Bz.source,"g")
|
|
12504
|
+
function Uz(t,e){var n,i,o,s=Bz.lastIndex=qz.lastIndex=0,r=-1,a=[],l=[]
|
|
12505
|
+
for(t+="",e+="";(n=Bz.exec(t))&&(i=qz.exec(e));)(o=i.index)>s&&(o=e.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
|
|
12481
12506
|
return s<e.length&&(o=e.slice(s),a[r]?a[r]+=o:a[++r]=o),a.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,i=0;i<e;++i)a[(n=l[i]).i]=n.x(t)
|
|
12482
|
-
return a.join("")})}function
|
|
12483
|
-
return null==e||"boolean"===o?
|
|
12484
|
-
function
|
|
12485
|
-
return(r=Math.sqrt(t*t+e*e))&&(t/=r,e/=r),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,r=-r),{translateX:o,translateY:s,rotate:Math.atan2(e,t)*
|
|
12507
|
+
return a.join("")})}function jz(t,e){var n,i,o=typeof e
|
|
12508
|
+
return null==e||"boolean"===o?Oz(e):("number"===o?Vz:"string"===o?(n=vz(e))?(e=n,Nz):Uz:e instanceof vz?Nz:e instanceof Date?zz:(i=e,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(e)?Lz:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Hz:Vz:Pz))(t,e)}function Wz(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var Zz,Gz=180/Math.PI,Kz={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
|
|
12509
|
+
function Jz(t,e,n,i,o,s){var r,a,l
|
|
12510
|
+
return(r=Math.sqrt(t*t+e*e))&&(t/=r,e/=r),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,r=-r),{translateX:o,translateY:s,rotate:Math.atan2(e,t)*Gz,skewX:Math.atan(l)*Gz,scaleX:r,scaleY:a}}function Xz(t,e,n,i){function o(t){return t.length?t.pop()+" ":""}return function(s,r){var a=[],l=[]
|
|
12486
12511
|
return s=t(s),r=t(r),function(t,i,o,s,r,a){if(t!==o||i!==s){var l=r.push("translate(",null,e,null,n)
|
|
12487
|
-
a.push({i:l-4,x:
|
|
12488
|
-
r.push({i:a-4,x:
|
|
12489
|
-
return a.join("")}}}var
|
|
12490
|
-
return e.isIdentity?
|
|
12491
|
-
function
|
|
12512
|
+
a.push({i:l-4,x:Vz(t,o)},{i:l-2,x:Vz(i,s)})}else(o||s)&&r.push("translate("+o+e+s+n)}(s.translateX,s.translateY,r.translateX,r.translateY,a,l),function(t,e,n,s){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),s.push({i:n.push(o(n)+"rotate(",null,i)-2,x:Vz(t,e)})):e&&n.push(o(n)+"rotate("+e+i)}(s.rotate,r.rotate,a,l),function(t,e,n,s){t!==e?s.push({i:n.push(o(n)+"skewX(",null,i)-2,x:Vz(t,e)}):e&&n.push(o(n)+"skewX("+e+i)}(s.skewX,r.skewX,a,l),function(t,e,n,i,s,r){if(t!==n||e!==i){var a=s.push(o(s)+"scale(",null,",",null,")")
|
|
12513
|
+
r.push({i:a-4,x:Vz(t,n)},{i:a-2,x:Vz(e,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(t){for(var e,n=-1,i=l.length;++n<i;)a[(e=l[n]).i]=e.x(t)
|
|
12514
|
+
return a.join("")}}}var Yz=Xz((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"")
|
|
12515
|
+
return e.isIdentity?Kz:Jz(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),Qz=Xz((function(t){return null==t?Kz:(Zz||(Zz=document.createElementNS("http://www.w3.org/2000/svg","g")),Zz.setAttribute("transform",t),(t=Zz.transform.baseVal.consolidate())?Jz((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Kz)}),", ",")",")")
|
|
12516
|
+
function tV(t){return((t=Math.exp(t))+1/t)/2}var eV,nV,iV=function t(e,n,i){function o(t,o){var s,r,a=t[0],l=t[1],c=t[2],d=o[0],h=o[1],u=o[2],p=d-a,f=h-l,m=p*p+f*f
|
|
12492
12517
|
if(m<1e-12)r=Math.log(u/c)/e,s=function(t){return[a+t*p,l+t*f,c*Math.exp(e*t*r)]}
|
|
12493
12518
|
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)
|
|
12494
|
-
r=(w-y)/e,s=function(t){var i,o=t*r,s=
|
|
12495
|
-
return[a+d*p,l+d*f,c*s/
|
|
12496
|
-
return t(n,i,i*i)},o}(Math.SQRT2,2,4),
|
|
12497
|
-
function
|
|
12498
|
-
return i.restart(t,e,n),i}function
|
|
12499
|
-
try{!function(){
|
|
12500
|
-
for(var t,e=
|
|
12501
|
-
for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:
|
|
12502
|
-
|
|
12503
|
-
e>
|
|
12504
|
-
return e=null==e?0:+e,i.restart((n=>{i.stop(),t(n+e)}),e,n),i}
|
|
12505
|
-
n=(null==n?
|
|
12506
|
-
var
|
|
12507
|
-
function
|
|
12519
|
+
r=(w-y)/e,s=function(t){var i,o=t*r,s=tV(y),d=c/(n*g)*(s*(i=e*o+y,((i=Math.exp(2*i))-1)/(i+1))-function(t){return((t=Math.exp(t))-1/t)/2}(y))
|
|
12520
|
+
return[a+d*p,l+d*f,c*s/tV(e*o+y)]}}return s.duration=1e3*r*e/Math.SQRT2,s}return o.rho=function(e){var n=Math.max(.001,+e),i=n*n
|
|
12521
|
+
return t(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(t){setTimeout(t,17)}
|
|
12522
|
+
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(t,e,n){var i=new mV
|
|
12523
|
+
return i.restart(t,e,n),i}function vV(){cV=(lV=hV.now())+dV,oV=sV=0
|
|
12524
|
+
try{!function(){pV(),++oV
|
|
12525
|
+
for(var t,e=eV;e;)(t=cV-e._time)>=0&&e._call.call(void 0,t),e=e._next;--oV}()}finally{oV=0,function(){var t,e,n=eV,i=1/0
|
|
12526
|
+
for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:eV=e)
|
|
12527
|
+
nV=t,yV(i)}(),cV=0}}function bV(){var t=hV.now(),e=t-lV
|
|
12528
|
+
e>aV&&(dV-=e,lV=t)}function yV(t){oV||(sV&&(sV=clearTimeout(sV)),t-cV>24?(t<1/0&&(sV=setTimeout(vV,t-hV.now()-dV)),rV&&(rV=clearInterval(rV))):(rV||(lV=hV.now(),rV=setInterval(bV,aV)),oV=1,uV(vV)))}function wV(t,e,n){var i=new mV
|
|
12529
|
+
return e=null==e?0:+e,i.restart((n=>{i.stop(),t(n+e)}),e,n),i}mV.prototype=gV.prototype={constructor:mV,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function")
|
|
12530
|
+
n=(null==n?pV():+n)+(null==e?0:+e),this._next||nV===this||(nV?nV._next=this:eV=this,nV=this),this._call=t,this._time=n,yV()},stop:function(){this._call&&(this._call=null,this._time=1/0,yV())}}
|
|
12531
|
+
var xV=OP("start","end","cancel","interrupt"),CV=[],kV=0,SV=1,$V=2,MV=3,_V=4,EV=5,IV=6
|
|
12532
|
+
function DV(t,e,n,i,o,s){var r=t.__transition
|
|
12508
12533
|
if(r){if(n in r)return}else t.__transition={}
|
|
12509
12534
|
!function(t,e,n){var i,o=t.__transition
|
|
12510
|
-
function s(t){n.state=
|
|
12511
|
-
if(n.state!==
|
|
12512
|
-
for(c in o)if((u=o[c]).name===n.name){if(u.state===
|
|
12513
|
-
u.state
|
|
12514
|
-
i.length=d+1}}function a(e){for(var o=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(l),n.state=
|
|
12515
|
-
n.state===
|
|
12516
|
-
delete t.__transition}o[e]=n,n.timer=
|
|
12517
|
-
if(n.state>
|
|
12518
|
-
return n}function
|
|
12519
|
-
if(n.state>
|
|
12520
|
-
return n}function
|
|
12535
|
+
function s(t){n.state=SV,n.timer.restart(r,n.delay,n.time),n.delay<=t&&r(t-n.delay)}function r(s){var c,d,h,u
|
|
12536
|
+
if(n.state!==SV)return l()
|
|
12537
|
+
for(c in o)if((u=o[c]).name===n.name){if(u.state===MV)return wV(r)
|
|
12538
|
+
u.state===_V?(u.state=IV,u.timer.stop(),u.on.call("interrupt",t,t.__data__,u.index,u.group),delete o[c]):+c<e&&(u.state=IV,u.timer.stop(),u.on.call("cancel",t,t.__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",t,t.__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(t,t.__data__,n.index,n.group))&&(i[++d]=u)
|
|
12539
|
+
i.length=d+1}}function a(e){for(var o=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(l),n.state=EV,1),s=-1,r=i.length;++s<r;)i[s].call(t,o)
|
|
12540
|
+
n.state===EV&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){for(var i in n.state=IV,n.timer.stop(),delete o[e],o)return
|
|
12541
|
+
delete t.__transition}o[e]=n,n.timer=gV(s,0,n.time)}(t,n,{name:e,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(t,e){var n=OV(t,e)
|
|
12542
|
+
if(n.state>kV)throw new Error("too late; already scheduled")
|
|
12543
|
+
return n}function TV(t,e){var n=OV(t,e)
|
|
12544
|
+
if(n.state>MV)throw new Error("too late; already running")
|
|
12545
|
+
return n}function OV(t,e){var n=t.__transition
|
|
12521
12546
|
if(!n||!(n=n[e]))throw new Error("transition not found")
|
|
12522
|
-
return n}function
|
|
12523
|
-
if(s){for(o in e=null==e?null:e+"",s)(n=s[o]).name===e?(i=n.state
|
|
12524
|
-
r&&delete t.__transition}}function
|
|
12525
|
-
return function(){var o=
|
|
12547
|
+
return n}function RV(t,e){var n,i,o,s=t.__transition,r=!0
|
|
12548
|
+
if(s){for(o in e=null==e?null:e+"",s)(n=s[o]).name===e?(i=n.state>$V&&n.state<EV,n.state=IV,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete s[o]):r=!1
|
|
12549
|
+
r&&delete t.__transition}}function FV(t,e){var n,i
|
|
12550
|
+
return function(){var o=TV(this,t),s=o.tween
|
|
12526
12551
|
if(s!==n)for(var r=0,a=(i=n=s).length;r<a;++r)if(i[r].name===e){(i=i.slice()).splice(r,1)
|
|
12527
|
-
break}o.tween=i}}function
|
|
12552
|
+
break}o.tween=i}}function NV(t,e,n){var i,o
|
|
12528
12553
|
if("function"!=typeof n)throw new Error
|
|
12529
|
-
return function(){var s=
|
|
12554
|
+
return function(){var s=TV(this,t),r=s.tween
|
|
12530
12555
|
if(r!==i){o=(i=r).slice()
|
|
12531
12556
|
for(var a={name:e,value:n},l=0,c=o.length;l<c;++l)if(o[l].name===e){o[l]=a
|
|
12532
|
-
break}l===c&&o.push(a)}s.tween=o}}function
|
|
12533
|
-
return t.each((function(){var t=
|
|
12534
|
-
return("number"==typeof e?
|
|
12557
|
+
break}l===c&&o.push(a)}s.tween=o}}function PV(t,e,n){var i=t._id
|
|
12558
|
+
return t.each((function(){var t=TV(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return OV(t,i).value[e]}}function LV(t,e){var n
|
|
12559
|
+
return("number"==typeof e?Vz:e instanceof vz?Nz:(n=vz(e))?(e=n,Nz):Uz)(t,e)}function zV(t){return function(){this.removeAttribute(t)}}function VV(t){return function(){this.removeAttributeNS(t.space,t.local)}}function HV(t,e,n){var i,o,s=n+""
|
|
12535
12560
|
return function(){var r=this.getAttribute(t)
|
|
12536
|
-
return r===s?null:r===i?o:o=e(i=r,n)}}function
|
|
12561
|
+
return r===s?null:r===i?o:o=e(i=r,n)}}function BV(t,e,n){var i,o,s=n+""
|
|
12537
12562
|
return function(){var r=this.getAttributeNS(t.space,t.local)
|
|
12538
|
-
return r===s?null:r===i?o:o=e(i=r,n)}}function
|
|
12563
|
+
return r===s?null:r===i?o:o=e(i=r,n)}}function qV(t,e,n){var i,o,s
|
|
12539
12564
|
return function(){var r,a,l=n(this)
|
|
12540
12565
|
if(null!=l)return(r=this.getAttribute(t))===(a=l+"")?null:r===i&&a===o?s:(o=a,s=e(i=r,l))
|
|
12541
|
-
this.removeAttribute(t)}}function
|
|
12566
|
+
this.removeAttribute(t)}}function UV(t,e,n){var i,o,s
|
|
12542
12567
|
return function(){var r,a,l=n(this)
|
|
12543
12568
|
if(null!=l)return(r=this.getAttributeNS(t.space,t.local))===(a=l+"")?null:r===i&&a===o?s:(o=a,s=e(i=r,l))
|
|
12544
|
-
this.removeAttributeNS(t.space,t.local)}}function
|
|
12569
|
+
this.removeAttributeNS(t.space,t.local)}}function jV(t,e){var n,i
|
|
12545
12570
|
function o(){var o=e.apply(this,arguments)
|
|
12546
|
-
return o!==i&&(n=(i=o)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,o)),n}return o._value=e,o}function
|
|
12571
|
+
return o!==i&&(n=(i=o)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,o)),n}return o._value=e,o}function WV(t,e){var n,i
|
|
12547
12572
|
function o(){var o=e.apply(this,arguments)
|
|
12548
|
-
return o!==i&&(n=(i=o)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,o)),n}return o._value=e,o}function
|
|
12549
|
-
function
|
|
12550
|
-
function
|
|
12551
|
-
|
|
12552
|
-
"function"!=typeof t&&(t=BP(t))
|
|
12553
|
-
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=t.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,EV(h[u],e,n,u,h,AV(a,n)))
|
|
12554
|
-
return new YV(s,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id
|
|
12573
|
+
return o!==i&&(n=(i=o)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,o)),n}return o._value=e,o}function ZV(t,e){return function(){AV(this,t).delay=+e.apply(this,arguments)}}function GV(t,e){return e=+e,function(){AV(this,t).delay=e}}function KV(t,e){return function(){TV(this,t).duration=+e.apply(this,arguments)}}function JV(t,e){return e=+e,function(){TV(this,t).duration=e}}var XV=GL.prototype.constructor
|
|
12574
|
+
function YV(t){return function(){this.style.removeProperty(t)}}var QV=0
|
|
12575
|
+
function tH(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function eH(){return++QV}var nH=GL.prototype
|
|
12576
|
+
tH.prototype={constructor:tH,select:function(t){var e=this._name,n=this._id
|
|
12555
12577
|
"function"!=typeof t&&(t=UP(t))
|
|
12556
|
-
for(var i=this._groups,o=i.length,s=
|
|
12557
|
-
|
|
12578
|
+
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=t.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,DV(h[u],e,n,u,h,OV(a,n)))
|
|
12579
|
+
return new tH(s,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id
|
|
12580
|
+
"function"!=typeof t&&(t=WP(t))
|
|
12581
|
+
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=t.call(l,l.__data__,h,c),f=OV(l,n),m=0,g=p.length;m<g;++m)(u=p[m])&&DV(u,e,n,m,p,f)
|
|
12582
|
+
s.push(p),r.push(l)}return new tH(s,r,e,n)},selectChild:nH.selectChild,selectChildren:nH.selectChildren,filter:function(t){"function"!=typeof t&&(t=GP(t))
|
|
12558
12583
|
for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var s,r=e[o],a=r.length,l=i[o]=[],c=0;c<a;++c)(s=r[c])&&t.call(s,s.__data__,c,r)&&l.push(s)
|
|
12559
|
-
return new
|
|
12584
|
+
return new tH(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error
|
|
12560
12585
|
for(var e=this._groups,n=t._groups,i=e.length,o=n.length,s=Math.min(i,o),r=new Array(i),a=0;a<s;++a)for(var l,c=e[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)
|
|
12561
12586
|
for(;a<i;++a)r[a]=e[a]
|
|
12562
|
-
return new
|
|
12563
|
-
|
|
12564
|
-
return arguments.length<2?
|
|
12565
|
-
return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?
|
|
12587
|
+
return new tH(r,this._parents,this._name,this._id)},selection:function(){return new XV(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=eH(),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,e)
|
|
12588
|
+
DV(r,t,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new tH(i,this._parents,t,n)},call:nH.call,nodes:nH.nodes,node:nH.node,size:nH.size,empty:nH.empty,each:nH.each,on:function(t,e){var n=this._id
|
|
12589
|
+
return arguments.length<2?OV(this.node(),n).on.on(t):this.each(function(t,e,n){var i,o,s=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".")
|
|
12590
|
+
return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?AV:TV
|
|
12566
12591
|
return function(){var r=s(this,t),a=r.on
|
|
12567
|
-
a!==i&&(o=(i=a).copy()).on(e,n),r.on=o}}(n,t,e))},attr:function(t,e){var n=
|
|
12568
|
-
return this.attrTween(t,"function"==typeof e?(n.local?
|
|
12592
|
+
a!==i&&(o=(i=a).copy()).on(e,n),r.on=o}}(n,t,e))},attr:function(t,e){var n=zP(t),i="transform"===n?Qz:LV
|
|
12593
|
+
return this.attrTween(t,"function"==typeof e?(n.local?UV:qV)(n,i,PV(this,"attr."+t,e)):null==e?(n.local?VV:zV)(n):(n.local?BV:HV)(n,i,e))},attrTween:function(t,e){var n="attr."+t
|
|
12569
12594
|
if(arguments.length<2)return(n=this.tween(n))&&n._value
|
|
12570
12595
|
if(null==e)return this.tween(n,null)
|
|
12571
12596
|
if("function"!=typeof e)throw new Error
|
|
12572
|
-
var i=
|
|
12573
|
-
return this.tween(n,(i.local?
|
|
12597
|
+
var i=zP(t)
|
|
12598
|
+
return this.tween(n,(i.local?jV:WV)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?Yz:LV
|
|
12574
12599
|
return null==e?this.styleTween(t,function(t,e){var n,i,o
|
|
12575
|
-
return function(){var s=
|
|
12576
|
-
return s===r?null:s===n&&r===i?o:o=e(n=s,i=r)}}(t,i)).on("end.style."+t,
|
|
12577
|
-
return function(){var r=
|
|
12578
|
-
return null==a&&(this.style.removeProperty(t),l=a=
|
|
12579
|
-
return function(){var l=
|
|
12600
|
+
return function(){var s=vL(this,t),r=(this.style.removeProperty(t),vL(this,t))
|
|
12601
|
+
return s===r?null:s===n&&r===i?o:o=e(n=s,i=r)}}(t,i)).on("end.style."+t,YV(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,o,s
|
|
12602
|
+
return function(){var r=vL(this,t),a=n(this),l=a+""
|
|
12603
|
+
return null==a&&(this.style.removeProperty(t),l=a=vL(this,t)),r===l?null:r===i&&l===o?s:(o=l,s=e(i=r,a))}}(t,i,PV(this,"style."+t,e))).each(function(t,e){var n,i,o,s,r="style."+e,a="end."+r
|
|
12604
|
+
return function(){var l=TV(this,t),c=l.on,d=null==l.value[r]?s||(s=YV(e)):void 0
|
|
12580
12605
|
c===n&&o===d||(i=(n=c).copy()).on(a,o=d),l.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,o,s=n+""
|
|
12581
|
-
return function(){var r=
|
|
12606
|
+
return function(){var r=vL(this,t)
|
|
12582
12607
|
return r===s?null:r===i?o:o=e(i=r,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="")
|
|
12583
12608
|
if(arguments.length<2)return(i=this.tween(i))&&i._value
|
|
12584
12609
|
if(null==e)return this.tween(i,null)
|
|
@@ -12586,7 +12611,7 @@ if("function"!=typeof e)throw new Error
|
|
|
12586
12611
|
return this.tween(i,function(t,e,n){var i,o
|
|
12587
12612
|
function s(){var s=e.apply(this,arguments)
|
|
12588
12613
|
return s!==o&&(i=(o=s)&&function(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}(t,s,n)),i}return s._value=e,s}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this)
|
|
12589
|
-
this.textContent=null==e?"":e}}(
|
|
12614
|
+
this.textContent=null==e?"":e}}(PV(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text"
|
|
12590
12615
|
if(arguments.length<1)return(e=this.tween(e))&&e._value
|
|
12591
12616
|
if(null==t)return this.tween(e,null)
|
|
12592
12617
|
if("function"!=typeof t)throw new Error
|
|
@@ -12595,59 +12620,59 @@ function i(){var i=t.apply(this,arguments)
|
|
|
12595
12620
|
return i!==n&&(e=(n=i)&&function(t){return function(e){this.textContent=t.call(this,e)}}(i)),e}return i._value=t,i}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode
|
|
12596
12621
|
for(var n in this.__transition)if(+n!==t)return
|
|
12597
12622
|
e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id
|
|
12598
|
-
if(t+="",arguments.length<2){for(var i,o=
|
|
12599
|
-
return null}return this.each((null==e?
|
|
12600
|
-
return arguments.length?this.each(("function"==typeof t?
|
|
12601
|
-
return arguments.length?this.each(("function"==typeof t?
|
|
12623
|
+
if(t+="",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===t)return i.value
|
|
12624
|
+
return null}return this.each((null==e?FV:NV)(n,t,e))},delay:function(t){var e=this._id
|
|
12625
|
+
return arguments.length?this.each(("function"==typeof t?ZV:GV)(e,t)):OV(this.node(),e).delay},duration:function(t){var e=this._id
|
|
12626
|
+
return arguments.length?this.each(("function"==typeof t?KV:JV)(e,t)):OV(this.node(),e).duration},ease:function(t){var e=this._id
|
|
12602
12627
|
return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error
|
|
12603
|
-
return function(){
|
|
12628
|
+
return function(){TV(this,t).ease=e}}(e,t)):OV(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error
|
|
12604
12629
|
return this.each(function(t,e){return function(){var n=e.apply(this,arguments)
|
|
12605
12630
|
if("function"!=typeof n)throw new Error
|
|
12606
|
-
|
|
12631
|
+
TV(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,i=n._id,o=n.size()
|
|
12607
12632
|
return new Promise((function(s,r){var a={value:r},l={value:function(){0==--o&&s()}}
|
|
12608
|
-
n.each((function(){var n=
|
|
12609
|
-
o!==t&&((e=(t=o).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e})),0===o&&s()}))},[Symbol.iterator]:
|
|
12610
|
-
var
|
|
12611
|
-
function
|
|
12612
|
-
return n}
|
|
12613
|
-
t instanceof
|
|
12614
|
-
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])&&
|
|
12615
|
-
return new
|
|
12616
|
-
var
|
|
12617
|
-
function
|
|
12618
|
-
var
|
|
12619
|
-
function
|
|
12620
|
-
return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function
|
|
12621
|
-
return t.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
|
|
12622
|
-
function v(t){t.property("__zoom",
|
|
12623
|
-
return i===t.x&&o===t.y?t:new
|
|
12633
|
+
n.each((function(){var n=TV(this,i),o=n.on
|
|
12634
|
+
o!==t&&((e=(t=o).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e})),0===o&&s()}))},[Symbol.iterator]:nH[Symbol.iterator]}
|
|
12635
|
+
var iH={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}}
|
|
12636
|
+
function oH(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`)
|
|
12637
|
+
return n}GL.prototype.interrupt=function(t){return this.each((function(){RV(this,t)}))},GL.prototype.transition=function(t){var e,n
|
|
12638
|
+
t instanceof tH?(e=t._id,t=t._name):(e=eH(),(n=iH).time=pV(),t=null==t?null:t+"")
|
|
12639
|
+
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,t,e,c,a,n||oH(r,e))
|
|
12640
|
+
return new tH(i,this._parents,t,e)}
|
|
12641
|
+
var sH=t=>()=>t
|
|
12642
|
+
function rH(t,{sourceEvent:e,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function aH(t,e,n){this.k=t,this.x=e,this.y=n}aH.prototype={constructor:aH,scale:function(t){return 1===t?this:new aH(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new aH(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
|
|
12643
|
+
var lH=new aH(1,0,0)
|
|
12644
|
+
function cH(t){t.stopImmediatePropagation()}function dH(t){t.preventDefault(),t.stopImmediatePropagation()}function hH(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function uH(){var t=this
|
|
12645
|
+
return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function pH(){return this.__zoom||lH}function fH(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function mH(){return navigator.maxTouchPoints||"ontouchstart"in this}function gH(t,e,n){var i=t.invertX(e[0][0])-n[0][0],o=t.invertX(e[1][0])-n[1][0],s=t.invertY(e[0][1])-n[0][1],r=t.invertY(e[1][1])-n[1][1]
|
|
12646
|
+
return t.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 t,e,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
|
|
12647
|
+
function v(t){t.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(t,e){return(e=Math.max(l[0],Math.min(l[1],e)))===t.k?t:new aH(e,t.x,t.y)}function y(t,e,n){var i=e[0]-n[0]*t.k,o=e[1]-n[1]*t.k
|
|
12648
|
+
return i===t.x&&o===t.y?t:new aH(t.k,i,o)}function w(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function x(t,e,n,i){t.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 t=this,s=arguments,r=C(t,s).event(i),a=o.apply(t,s),l=null==n?w(a):"function"==typeof n?n.apply(t,s):n,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=t.__zoom,u="function"==typeof e?e.apply(t,s):e,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
|
|
12624
12649
|
return function(t){if(1===t)t=u
|
|
12625
12650
|
else{var e=p(t),n=c/e[2]
|
|
12626
|
-
t=new
|
|
12651
|
+
t=new aH(n,l[0]-e[0]*n,l[1]-e[1]*n)}r.zoom(null,t)}}))}function C(t,e,n){return!n&&t.__zooming||new k(t,e)}function k(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=o.apply(t,e),this.taps=0}function S(t,...e){if(i.apply(this,arguments)){var n=C(this,e).event(t),o=this.__zoom,a=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,r.apply(this,arguments)))),d=JL(t)
|
|
12627
12652
|
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)
|
|
12628
12653
|
else{if(o.k===a)return
|
|
12629
|
-
n.mouse=[d,o.invert(d)],
|
|
12630
|
-
r.moved=e*e+n*n>m}r.event(t).zoom("mouse",s(y(r.that.__zoom,r.mouse[0]=
|
|
12631
|
-
e&&(i.on("click.drag",
|
|
12632
|
-
!function(t){var e=t.document.documentElement,n=
|
|
12633
|
-
"onselectstart"in e?n.on("selectstart.drag",
|
|
12634
|
-
|
|
12635
|
-
for(
|
|
12636
|
-
t&&(t=clearTimeout(t)),s&&(h.taps<2&&(e=l[0],t=setTimeout((function(){t=null}),p)),
|
|
12637
|
-
for(
|
|
12654
|
+
n.mouse=[d,o.invert(d)],RV(this),n.start()}dH(t),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 $(t,...e){if(!n&&i.apply(this,arguments)){var o=t.currentTarget,r=C(this,e,!0).event(t),a=KL(t.view).on("mousemove.zoom",(function(t){if(dH(t),!r.moved){var e=t.clientX-d,n=t.clientY-h
|
|
12655
|
+
r.moved=e*e+n*n>m}r.event(t).zoom("mouse",s(y(r.that.__zoom,r.mouse[0]=JL(t,o),r.mouse[1]),r.extent,c))}),!0).on("mouseup.zoom",(function(t){a.on("mousemove.zoom mouseup.zoom",null),function(t,e){var n=t.document.documentElement,i=KL(t).on("dragstart.drag",null)
|
|
12656
|
+
e&&(i.on("click.drag",YL,XL),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(t.view,r.moved),dH(t),r.event(t).end()}),!0),l=JL(t,o),d=t.clientX,h=t.clientY
|
|
12657
|
+
!function(t){var e=t.document.documentElement,n=KL(t).on("dragstart.drag",YL,XL)
|
|
12658
|
+
"onselectstart"in e?n.on("selectstart.drag",YL,XL):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}(t.view),cH(t),r.mouse=[l,this.__zoom.invert(l)],RV(this),r.start()}}function M(t,...e){if(i.apply(this,arguments)){var n=this.__zoom,r=JL(t.changedTouches?t.changedTouches[0]:t,this),a=n.invert(r),l=n.k*(t.shiftKey?.5:2),h=s(y(b(n,l),r,a),o.apply(this,e),c)
|
|
12659
|
+
dH(t),d>0?KL(this).transition().duration(d).call(x,h,r,t):KL(this).call(v.transform,h,r,t)}}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)
|
|
12660
|
+
for(cH(n),r=0;r<d;++r)l=[l=JL(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+!!t)
|
|
12661
|
+
t&&(t=clearTimeout(t)),s&&(h.taps<2&&(e=l[0],t=setTimeout((function(){t=null}),p)),RV(this),h.start())}}function E(t,...e){if(this.__zooming){var n,i,o,r,a=C(this,e).event(t),l=t.changedTouches,d=l.length
|
|
12662
|
+
for(dH(t),n=0;n<d;++n)o=JL(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)
|
|
12638
12663
|
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
|
|
12639
12664
|
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
|
|
12640
12665
|
o=a.touch0[0],r=a.touch0[1]}a.zoom("touch",s(y(i,o,r),a.extent,c))}}function I(t,...i){if(this.__zooming){var o,s,r=C(this,i).event(t),a=t.changedTouches,l=a.length
|
|
12641
|
-
for(
|
|
12666
|
+
for(cH(t),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
|
|
12642
12667
|
if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0])
|
|
12643
|
-
else if(r.end(),2===r.taps&&(s=
|
|
12668
|
+
else if(r.end(),2===r.taps&&(s=JL(s,this),Math.hypot(e[0]-s[0],e[1]-s[1])<g)){var c=KL(this).on("dblclick.zoom")
|
|
12644
12669
|
c&&c.apply(this,arguments)}}}return v.transform=function(t,e,n,i){var o=t.selection?t.selection():t
|
|
12645
|
-
o.property("__zoom",
|
|
12670
|
+
o.property("__zoom",pH),t!==o?x(t,e,n,i):o.interrupt().each((function(){C(this,arguments).event(i).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()}))},v.scaleBy=function(t,e,n,i){v.scaleTo(t,(function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)}),n,i)},v.scaleTo=function(t,e,n,i){v.transform(t,(function(){var t=o.apply(this,arguments),i=this.__zoom,r=null==n?w(t):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(r),l="function"==typeof e?e.apply(this,arguments):e
|
|
12646
12671
|
return s(y(b(i,l),r,a),t,c)}),n,i)},v.translateBy=function(t,e,n,i){v.transform(t,(function(){return s(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),o.apply(this,arguments),c)}),null,i)},v.translateTo=function(t,e,n,i,r){v.transform(t,(function(){var t=o.apply(this,arguments),r=this.__zoom,a=null==i?w(t):"function"==typeof i?i.apply(this,arguments):i
|
|
12647
|
-
return s(
|
|
12648
|
-
u.call(t,this.that,new
|
|
12649
|
-
return t===u?v:t},v.clickDistance=function(t){return arguments.length?(m=(t=+t)*t,v):Math.sqrt(m)},v.tapDistance=function(t){return arguments.length?(g=+t,v):g},v}
|
|
12650
|
-
const
|
|
12672
|
+
return s(lH.translate(a[0],a[1]).scale(r.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,c)}),i,r)},k.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=KL(this.that).datum()
|
|
12673
|
+
u.call(t,this.that,new rH(t,{sourceEvent:this.sourceEvent,target:v,type:t,transform:this.that.__zoom,dispatch:u}),e)}},v.wheelDelta=function(t){return arguments.length?(r="function"==typeof t?t:sH(+t),v):r},v.filter=function(t){return arguments.length?(i="function"==typeof t?t:sH(!!t),v):i},v.touchable=function(t){return arguments.length?(a="function"==typeof t?t:sH(!!t),v):a},v.extent=function(t){return arguments.length?(o="function"==typeof t?t:sH([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),v):o},v.scaleExtent=function(t){return arguments.length?(l[0]=+t[0],l[1]=+t[1],v):[l[0],l[1]]},v.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(t){return arguments.length?(s=t,v):s},v.duration=function(t){return arguments.length?(d=+t,v):d},v.interpolate=function(t){return arguments.length?(h=t,v):h},v.on=function(){var t=u.on.apply(u,arguments)
|
|
12674
|
+
return t===u?v:t},v.clickDistance=function(t){return arguments.length?(m=(t=+t)*t,v):Math.sqrt(m)},v.tapDistance=function(t){return arguments.length?(g=+t,v):g},v}aH.prototype
|
|
12675
|
+
const bH=Z`
|
|
12651
12676
|
<div class="wafer-map-container">
|
|
12652
12677
|
<svg class="svg-root">
|
|
12653
12678
|
<g ${Pt("zoomContainer")} transform=${t=>t.transform.toString()}>
|
|
@@ -12677,7 +12702,7 @@ const gH=Z`
|
|
|
12677
12702
|
/>
|
|
12678
12703
|
</svg>
|
|
12679
12704
|
</div>
|
|
12680
|
-
`,
|
|
12705
|
+
`,yH=xt`
|
|
12681
12706
|
:host {
|
|
12682
12707
|
display: inline-block;
|
|
12683
12708
|
width: 500px;
|
|
@@ -12761,76 +12786,76 @@ const gH=Z`
|
|
|
12761
12786
|
outline-width: 0px;
|
|
12762
12787
|
}
|
|
12763
12788
|
`
|
|
12764
|
-
function
|
|
12789
|
+
function wH(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function xH(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function CH(t){let e,n,i
|
|
12765
12790
|
function o(t,i,o=0,s=t.length){if(o<s){if(0!==e(i,i))return s
|
|
12766
12791
|
do{const e=o+s>>>1
|
|
12767
|
-
n(t[e],i)<0?o=e+1:s=e}while(o<s)}return o}return 2!==t.length?(e=
|
|
12792
|
+
n(t[e],i)<0?o=e+1:s=e}while(o<s)}return o}return 2!==t.length?(e=wH,n=(e,n)=>wH(t(e),n),i=(e,n)=>t(e)-n):(e=t===wH||t===xH?t:kH,n=t,i=t),{left:o,center:function(t,e,n=0,s=t.length){const r=o(t,e,n,s-1)
|
|
12768
12793
|
return r>n&&i(t[r-1],e)>-i(t[r],e)?r-1:r},right:function(t,i,o=0,s=t.length){if(o<s){if(0!==e(i,i))return s
|
|
12769
12794
|
do{const e=o+s>>>1
|
|
12770
|
-
n(t[e],i)<=0?o=e+1:s=e}while(o<s)}return o}}}function
|
|
12771
|
-
|
|
12772
|
-
class
|
|
12795
|
+
n(t[e],i)<=0?o=e+1:s=e}while(o<s)}return o}}}function kH(){return 0}function SH(t){return null===t?NaN:+t}const $H=CH(wH).right
|
|
12796
|
+
CH(SH).center
|
|
12797
|
+
class MH extends Map{constructor(t,e=EH){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(_H(this,t))}has(t){return super.has(_H(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const i=e(n)
|
|
12773
12798
|
return t.has(i)?t.get(i):(t.set(i,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const i=e(n)
|
|
12774
12799
|
t.has(i)&&(n=t.get(i),t.delete(i))
|
|
12775
|
-
return n}(this,t))}}function
|
|
12776
|
-
return t.has(i)?t.get(i):n}function
|
|
12777
|
-
function
|
|
12800
|
+
return n}(this,t))}}function _H({_intern:t,_key:e},n){const i=e(n)
|
|
12801
|
+
return t.has(i)?t.get(i):n}function EH(t){return null!==t&&"object"==typeof t?t.valueOf():t}const IH=Math.sqrt(50),DH=Math.sqrt(10),AH=Math.sqrt(2)
|
|
12802
|
+
function TH(t,e,n){const i=(e-t)/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
|
|
12778
12803
|
let a,l,c
|
|
12779
|
-
return o<0?(c=Math.pow(10,-o)/r,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,o)*r,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?
|
|
12804
|
+
return o<0?(c=Math.pow(10,-o)/r,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,o)*r,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?TH(t,e,2*n):[a,l,c]}function OH(t,e,n){if(!((n=+n)>0))return[]
|
|
12780
12805
|
if((t=+t)===(e=+e))return[t]
|
|
12781
|
-
const i=e<t,[o,s,r]=i?
|
|
12806
|
+
const i=e<t,[o,s,r]=i?TH(e,t,n):TH(t,e,n)
|
|
12782
12807
|
if(!(s>=o))return[]
|
|
12783
12808
|
const a=s-o+1,l=new Array(a)
|
|
12784
12809
|
if(i)if(r<0)for(let t=0;t<a;++t)l[t]=(s-t)/-r
|
|
12785
12810
|
else for(let t=0;t<a;++t)l[t]=(s-t)*r
|
|
12786
12811
|
else if(r<0)for(let t=0;t<a;++t)l[t]=(o+t)/-r
|
|
12787
12812
|
else for(let t=0;t<a;++t)l[t]=(o+t)*r
|
|
12788
|
-
return l}function
|
|
12813
|
+
return l}function RH(t,e,n){return TH(t=+t,e=+e,n=+n)[2]}function FH(t,e,n=SH){if((i=t.length)&&!isNaN(e=+e)){if(e<=0||i<2)return+n(t[0],0,t)
|
|
12789
12814
|
if(e>=1)return+n(t[i-1],i-1,t)
|
|
12790
12815
|
var i,o=(i-1)*e,s=Math.floor(o),r=+n(t[s],s,t)
|
|
12791
|
-
return r+(+n(t[s+1],s+1,t)-r)*(o-s)}}function
|
|
12816
|
+
return r+(+n(t[s+1],s+1,t)-r)*(o-s)}}function NH(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n
|
|
12792
12817
|
for(var i=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),s=new Array(o);++i<o;)s[i]=t+i*n
|
|
12793
|
-
return s}function
|
|
12818
|
+
return s}function PH(t,e){switch(arguments.length){case 0:break
|
|
12794
12819
|
case 1:this.range(t)
|
|
12795
12820
|
break
|
|
12796
|
-
default:this.range(e).domain(t)}return this}const
|
|
12797
|
-
function
|
|
12821
|
+
default:this.range(e).domain(t)}return this}const LH=Symbol("implicit")
|
|
12822
|
+
function zH(){var t=new MH,e=[],n=[],i=LH
|
|
12798
12823
|
function o(o){let s=t.get(o)
|
|
12799
|
-
if(void 0===s){if(i!==
|
|
12824
|
+
if(void 0===s){if(i!==LH)return i
|
|
12800
12825
|
t.set(o,s=e.push(o)-1)}return n[s%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice()
|
|
12801
|
-
e=[],t=new
|
|
12826
|
+
e=[],t=new MH
|
|
12802
12827
|
for(const i of n)t.has(i)||t.set(i,e.push(i)-1)
|
|
12803
|
-
return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(i=t,o):i},o.copy=function(){return
|
|
12828
|
+
return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(i=t,o):i},o.copy=function(){return zH(e,n).unknown(i)},PH.apply(o,arguments),o}function VH(){var t,e,n=zH().unknown(void 0),i=n.domain,o=n.range,s=0,r=1,a=!1,l=0,c=0,d=.5
|
|
12804
12829
|
function h(){var n=i().length,h=r<s,u=h?r:s,p=h?s:r
|
|
12805
12830
|
t=(p-u)/Math.max(1,n-l+2*c),a&&(t=Math.floor(t)),u+=(p-u-t*(n-l))*d,e=t*(1-l),a&&(u=Math.round(u),e=Math.round(e))
|
|
12806
|
-
var f=
|
|
12807
|
-
return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(t){return arguments.length?(i(t),h()):i()},n.range=function(t){return arguments.length?([s,r]=t,s=+s,r=+r,h()):[s,r]},n.rangeRound=function(t){return[s,r]=t,s=+s,r=+r,a=!0,h()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,h()):a},n.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),h()):l},n.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),h()):l},n.paddingOuter=function(t){return arguments.length?(c=+t,h()):c},n.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),h()):d},n.copy=function(){return
|
|
12808
|
-
function
|
|
12809
|
-
var n}function
|
|
12810
|
-
return o<i?(i=
|
|
12811
|
-
for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++r<i;)o[r]=
|
|
12812
|
-
return function(e){var n
|
|
12813
|
-
return s[n](o[n](e))}}function
|
|
12831
|
+
var f=NH(n).map((function(e){return u+t*e}))
|
|
12832
|
+
return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(t){return arguments.length?(i(t),h()):i()},n.range=function(t){return arguments.length?([s,r]=t,s=+s,r=+r,h()):[s,r]},n.rangeRound=function(t){return[s,r]=t,s=+s,r=+r,a=!0,h()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,h()):a},n.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),h()):l},n.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),h()):l},n.paddingOuter=function(t){return arguments.length?(c=+t,h()):c},n.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),h()):d},n.copy=function(){return VH(i(),[s,r]).round(a).paddingInner(l).paddingOuter(c).align(d)},PH.apply(h(),arguments)}function HH(t){return+t}var BH=[0,1]
|
|
12833
|
+
function qH(t){return t}function UH(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n})
|
|
12834
|
+
var n}function jH(t,e,n){var i=t[0],o=t[1],s=e[0],r=e[1]
|
|
12835
|
+
return o<i?(i=UH(o,i),s=n(r,s)):(i=UH(i,o),s=n(s,r)),function(t){return s(i(t))}}function WH(t,e,n){var i=Math.min(t.length,e.length)-1,o=new Array(i),s=new Array(i),r=-1
|
|
12836
|
+
for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++r<i;)o[r]=UH(t[r],t[r+1]),s[r]=n(e[r],e[r+1])
|
|
12837
|
+
return function(e){var n=$H(t,e,1,i)-1
|
|
12838
|
+
return s[n](o[n](e))}}function ZH(){var t,e,n,i,o,s,r=BH,a=BH,l=jz,c=qH
|
|
12814
12839
|
function d(){var t,e,n,l=Math.min(r.length,a.length)
|
|
12815
|
-
return c!==
|
|
12840
|
+
return c!==qH&&(t=r[0],e=r[l-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),i=l>2?WH:jH,o=s=null,h}function h(e){return null==e||isNaN(e=+e)?n:(o||(o=i(r.map(t),a,l)))(t(c(e)))}return h.invert=function(n){return c(e((s||(s=i(a,r.map(t),Vz)))(n)))},h.domain=function(t){return arguments.length?(r=Array.from(t,HH),d()):r.slice()},h.range=function(t){return arguments.length?(a=Array.from(t),d()):a.slice()},h.rangeRound=function(t){return a=Array.from(t),l=Wz,d()},h.clamp=function(t){return arguments.length?(c=!!t||qH,d()):c!==qH},h.interpolate=function(t){return arguments.length?(l=t,d()):l},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,i){return t=n,e=i,d()}}function GH(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null
|
|
12816
12841
|
var n,i=t.slice(0,n)
|
|
12817
|
-
return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function
|
|
12818
|
-
function
|
|
12842
|
+
return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function KH(t){return(t=GH(Math.abs(t)))?t[1]:NaN}var JH,XH=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
|
|
12843
|
+
function YH(t){if(!(e=XH.exec(t)))throw new Error("invalid format: "+t)
|
|
12819
12844
|
var e
|
|
12820
|
-
return new
|
|
12845
|
+
return new QH({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function QH(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function tB(t,e){var n=GH(t,e)
|
|
12821
12846
|
if(!n)return t+""
|
|
12822
12847
|
var i=n[0],o=n[1]
|
|
12823
|
-
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")}
|
|
12824
|
-
var
|
|
12848
|
+
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=QH.prototype,QH.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}
|
|
12849
|
+
var eB={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>tB(100*t,e),r:tB,s:function(t,e){var n=GH(t,e)
|
|
12825
12850
|
if(!n)return t+""
|
|
12826
|
-
var i=n[0],o=n[1],s=o-(
|
|
12827
|
-
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")+
|
|
12828
|
-
function
|
|
12829
|
-
function
|
|
12830
|
-
return s.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",s=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?
|
|
12831
|
-
function h(t){var e=(t=
|
|
12832
|
-
"n"===b?(m=!0,b="g"):
|
|
12833
|
-
var y="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===u?s:/[%p]/.test(b)?l:"",x=
|
|
12851
|
+
var i=n[0],o=n[1],s=o-(JH=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,r=i.length
|
|
12852
|
+
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(t,Math.max(0,e+s-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)}
|
|
12853
|
+
function nB(t){return t}var iB,oB,sB,rB=Array.prototype.map,aB=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
|
|
12854
|
+
function lB(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?nB:(e=rB.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var o=t.length,s=[],r=0,a=e[0],l=0;o>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),s.push(t.substring(o-=a,o+a)),!((l+=a+1)>i));)a=e[r=(r+1)%e.length]
|
|
12855
|
+
return s.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",s=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?nB:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(rB.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",d=void 0===t.nan?"NaN":t.nan+""
|
|
12856
|
+
function h(t){var e=(t=YH(t)).fill,n=t.align,h=t.sign,u=t.symbol,p=t.zero,f=t.width,m=t.comma,g=t.precision,v=t.trim,b=t.type
|
|
12857
|
+
"n"===b?(m=!0,b="g"):eB[b]||(void 0===g&&(g=12),v=!0,b="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=")
|
|
12858
|
+
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)
|
|
12834
12859
|
function k(t){var o,s,l,u=y,k=w
|
|
12835
12860
|
if("c"===b)k=x(t)+k,t=""
|
|
12836
12861
|
else{var S=(t=+t)<0||1/t<0
|
|
@@ -12839,7 +12864,7 @@ break
|
|
|
12839
12864
|
case"0":0===o&&(o=i),e=i
|
|
12840
12865
|
break
|
|
12841
12866
|
default:if(!+t[i])break t
|
|
12842
|
-
o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,k=("s"===b?
|
|
12867
|
+
o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,k=("s"===b?aB[8+JH/3]:"")+k+(S&&"("===h?")":""),C)for(o=-1,s=t.length;++o<s;)if(48>(l=t.charCodeAt(o))||l>57){k=(46===l?r+t.slice(o+1):t.slice(o))+k,t=t.slice(0,o)
|
|
12843
12868
|
break}}m&&!p&&(t=i(t,1/0))
|
|
12844
12869
|
var $=u.length+t.length+k.length,M=$<f?new Array(f-$+1).join(e):""
|
|
12845
12870
|
switch(m&&p&&(t=i(M+t,M.length?f-k.length:1/0),M=""),n){case"<":t=u+t+k+M
|
|
@@ -12848,46 +12873,46 @@ case"=":t=u+M+t+k
|
|
|
12848
12873
|
break
|
|
12849
12874
|
case"^":t=M.slice(0,$=M.length>>1)+u+t+k+M.slice($)
|
|
12850
12875
|
break
|
|
12851
|
-
default:t=M+u+t+k}return a(t)}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 t+""},k}return{format:h,formatPrefix:function(t,e){var n=h(((t=
|
|
12852
|
-
return function(t){return n(o*t)+s}}}}function
|
|
12853
|
-
const i=(e=+e)<(t=+t),o=i?
|
|
12876
|
+
default:t=M+u+t+k}return a(t)}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 t+""},k}return{format:h,formatPrefix:function(t,e){var n=h(((t=YH(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(KH(e)/3))),o=Math.pow(10,-i),s=aB[8+i/3]
|
|
12877
|
+
return function(t){return n(o*t)+s}}}}function cB(t,e,n,i){var o,s=function(t,e,n){n=+n
|
|
12878
|
+
const i=(e=+e)<(t=+t),o=i?RH(e,t,n):RH(t,e,n)
|
|
12854
12879
|
return(i?-1:1)*(o<0?1/-o:o)}(t,e,n)
|
|
12855
|
-
switch((i=
|
|
12856
|
-
return null!=i.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(
|
|
12857
|
-
case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,
|
|
12880
|
+
switch((i=YH(null==i?",f":i)).type){case"s":var r=Math.max(Math.abs(t),Math.abs(e))
|
|
12881
|
+
return null!=i.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(KH(e)/3)))-KH(Math.abs(t)))}(s,r))||(i.precision=o),sB(i,r)
|
|
12882
|
+
case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,KH(e)-KH(t))+1}(s,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=o-("e"===i.type))
|
|
12858
12883
|
break
|
|
12859
|
-
case"f":case"%":null!=i.precision||isNaN(o=function(t){return Math.max(0,-
|
|
12860
|
-
return t.copy=function(){return e=t,
|
|
12861
|
-
var e},
|
|
12884
|
+
case"f":case"%":null!=i.precision||isNaN(o=function(t){return Math.max(0,-KH(Math.abs(t)))}(s))||(i.precision=o-2*("%"===i.type))}return oB(i)}function dB(){var t=ZH()(qH,qH)
|
|
12885
|
+
return t.copy=function(){return e=t,dB().domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())
|
|
12886
|
+
var e},PH.apply(t,arguments),function(t){var e=t.domain
|
|
12862
12887
|
return t.ticks=function(t){var n=e()
|
|
12863
|
-
return
|
|
12864
|
-
return
|
|
12888
|
+
return OH(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var i=e()
|
|
12889
|
+
return cB(i[0],i[i.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10)
|
|
12865
12890
|
var i,o,s=e(),r=0,a=s.length-1,l=s[r],c=s[a],d=10
|
|
12866
|
-
for(c<l&&(o=l,l=c,c=o,o=r,r=a,a=o);d-- >0;){if((o=
|
|
12891
|
+
for(c<l&&(o=l,l=c,c=o,o=r,r=a,a=o);d-- >0;){if((o=RH(l,c,n))===i)return s[r]=l,s[a]=c,e(s)
|
|
12867
12892
|
if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o
|
|
12868
12893
|
else{if(!(o<0))break
|
|
12869
|
-
l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return t},t}(t)}function
|
|
12894
|
+
l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return t},t}(t)}function hB(){var t,e=[],n=[],i=[]
|
|
12870
12895
|
function o(){var t=0,o=Math.max(1,n.length)
|
|
12871
|
-
for(i=new Array(o-1);++t<o;)i[t-1]=
|
|
12872
|
-
return s}function s(e){return null==e||isNaN(e=+e)?t:n[
|
|
12896
|
+
for(i=new Array(o-1);++t<o;)i[t-1]=FH(e,t/o)
|
|
12897
|
+
return s}function s(e){return null==e||isNaN(e=+e)?t:n[$H(i,e)]}return s.invertExtent=function(t){var o=n.indexOf(t)
|
|
12873
12898
|
return o<0?[NaN,NaN]:[o>0?i[o-1]:e[0],o<i.length?i[o]:e[e.length-1]]},s.domain=function(t){if(!arguments.length)return e.slice()
|
|
12874
12899
|
e=[]
|
|
12875
12900
|
for(let n of t)null==n||isNaN(n=+n)||e.push(n)
|
|
12876
|
-
return e.sort(
|
|
12877
|
-
const
|
|
12878
|
-
class
|
|
12901
|
+
return e.sort(wH),o()},s.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},s.unknown=function(e){return arguments.length?(t=e,s):t},s.quantiles=function(){return i.slice()},s.copy=function(){return hB().domain(e).range(n).unknown(t)},PH.apply(s,arguments)}iB=lB({thousands:",",grouping:[3],currency:["$",""]}),oB=iB.format,sB=iB.formatPrefix
|
|
12902
|
+
const uB="bottom-left",pB="bottom-right",fB="top-left",mB="top",gB="show",vB="hide",bB="linear",yB="ordinal"
|
|
12903
|
+
class wB{get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get margin(){return this._margin}get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}constructor(t){this.wafermap=t,this.defaultPadding=0,this.baseMarginPercentage=.04}update(){const t={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},e=Math.min(t.width,t.height),n={top:(t.height-e)/2,right:(t.width-e)/2,bottom:(t.height-e)/2,left:(t.width-e)/2},i={top:e*this.baseMarginPercentage,right:e*this.baseMarginPercentage,bottom:e*this.baseMarginPercentage,left:e*this.baseMarginPercentage}
|
|
12879
12904
|
this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(t,this._margin)
|
|
12880
12905
|
const o=Math.min(this._containerDimensions.width,this._containerDimensions.height),s=this.gridDimensionsValidAndDefined()?this.calculateGridDimensionsFromBoundingBox():this.calculateGridDimensionsFromDies(),r=this.wafermap.originLocation
|
|
12881
12906
|
this._horizontalScale=this.createHorizontalScale(r,s,o),this._verticalScale=this.createVerticalScale(r,s,o),this._dieDimensions={width:Math.abs(this._horizontalScale(0)-this._horizontalScale(1)),height:Math.abs(this._verticalScale(0)-this._verticalScale(1))}}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}calculateGridDimensionsFromBoundingBox(){const t={origin:{x:0,y:0},rows:0,cols:0}
|
|
12882
12907
|
return"number"==typeof this.wafermap.gridMaxY&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX&&(t.origin.x=this.wafermap.gridMinX,t.origin.y=this.wafermap.gridMinY,t.rows=this.wafermap.gridMaxY-this.wafermap.gridMinY+1,t.cols=this.wafermap.gridMaxX-this.wafermap.gridMinX+1),t}calculateGridDimensionsFromDies(){if(void 0===this.wafermap.diesTable)return{origin:{x:0,y:0},rows:0,cols:0}
|
|
12883
12908
|
const t=this.wafermap.diesTable.getChild("colIndex").toArray(),e=this.wafermap.diesTable.getChild("rowIndex").toArray(),n={x:t[0],y:e[0]},i={x:t[0],y:e[0]}
|
|
12884
12909
|
for(let o=0;o<t.length;o++)t[o]<n.x&&(n.x=t[o]),t[o]>i.x&&(i.x=t[o]),e[o]<n.y&&(n.y=e[o]),e[o]>i.y&&(i.y=e[o])
|
|
12885
|
-
return{origin:n,rows:i.y-n.y+1,cols:i.x-n.x+1}}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e,n){const i=
|
|
12886
|
-
return t===
|
|
12887
|
-
return t===
|
|
12910
|
+
return{origin:n,rows:i.y-n.y+1,cols:i.x-n.x+1}}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e,n){const i=dB()
|
|
12911
|
+
return t===uB||t===fB?i.domain([e.origin.x,e.origin.x+e.cols]).range([0,n]):i.domain([e.origin.x-1,e.origin.x+e.cols-1]).range([n,0])}createVerticalScale(t,e,n){const i=dB()
|
|
12912
|
+
return t===uB||t===pB?i.domain([e.origin.y-1,e.origin.y+e.rows-1]).range([n,0]):i.domain([e.origin.y,e.origin.y+e.rows]).range([0,n])}calculateMarginAddition(t,e){return{top:t.top+e.top,right:t.right+e.right,bottom:t.bottom+e.bottom,left:t.left+e.left}}}class xB{get labelsFontSize(){return this._labelsFontSize}get colorScale(){return this._colorScale}constructor(t){this.wafermap=t,this.fontSizeFactor=.8,this.colorScaleResolution=10}update(){this._labelsFontSize=this.calculateLabelsFontSize(this.wafermap.experimentalDataManager.dieDimensions,this.wafermap.maxCharacters),this._colorScale=this.calculateColorScale()}calculateColorScale(){if(this.wafermap.colorScaleMode===bB){const t=this.wafermap.colorScale.values.map((t=>+t)),e=dB().domain(t).range(this.wafermap.colorScale.colors)
|
|
12888
12913
|
let n=t[0],i=t[0]
|
|
12889
12914
|
t.forEach((t=>{t<n&&(n=t),t>i&&(i=t)}))
|
|
12890
|
-
return
|
|
12915
|
+
return OH(n,i,t.length*this.colorScaleResolution).map((t=>({color:e(t),value:t})))}return this.wafermap.colorScale.colors.map(((t,e)=>({color:t,value:+this.wafermap.colorScale.values[e]}))).sort(((t,e)=>t.value-e.value))}calculateLabelsFontSize(t,e){return Math.min(t.height,t.width/(.5*Math.max(2,e))*this.fontSizeFactor)}}class CB{get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get verticalScale(){return this.computations.verticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get colorScale(){return this.prerendering.colorScale}constructor(t){this.wafermap=t,this.computations=new wB(t),this.prerendering=new xB(t)}updateComputations(){this.computations.update(),this.prerendering.update()}updatePrerendering(){this.prerendering.update()}}class kB{constructor(t){this.wafermap=t,this.minDieDim=50}updateSortedDiesAndDrawWafer(){this.dies=this.wafermap.dataManager.diesRenderInfo.sort(((t,e)=>t.fillStyle>e.fillStyle?1:e.fillStyle>t.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(){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 t=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
|
|
12891
12916
|
if(void 0===t)return""
|
|
12892
12917
|
const e=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y)
|
|
12893
12918
|
if(void 0===e)return""
|
|
@@ -12900,58 +12925,58 @@ if(t*e*(this.wafermap.transform.k||1)>=this.minDieDim){const n=this.wafermap.dat
|
|
|
12900
12925
|
i.font=`${n.toString()}px sans-serif`,i.fillStyle="#ffffff",i.textAlign="center",i.lineCap="butt"
|
|
12901
12926
|
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])
|
|
12902
12927
|
s[0]-=t,s[1]-=e
|
|
12903
|
-
for(const n of this.dies)this.isDieVisible(n,s,r)&&i.fillText(n.text,n.x+t/2,n.y+e/2+o.width/2,t-t/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(t,e,n){return t.x>=e[0]&&t.x<n[0]&&t.y>=e[1]&&t.y<n[1]}}const
|
|
12904
|
-
class
|
|
12905
|
-
!function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"}(
|
|
12906
|
-
class
|
|
12907
|
-
class
|
|
12908
|
-
class
|
|
12928
|
+
for(const n of this.dies)this.isDieVisible(n,s,r)&&i.fillText(n.text,n.x+t/2,n.y+e/2+o.width/2,t-t/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(t,e,n){return t.x>=e[0]&&t.x<n[0]&&t.y>=e[1]&&t.y<n[1]}}const SB=["highlightedTags","canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
|
|
12929
|
+
class $B extends dI{constructor(t){super(SB),this.wafermap=t,this.updateQueued=!1}get requiresEventsUpdate(){return this.isTracked("highlightedTags")||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("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")||this.isTracked("transform")}get requiresContainerDimensionsUpdate(){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 requiresLabelsFontSizeUpdate(){return this.isTracked("maxCharacters")}get requiresDiesRenderInfoUpdate(){return 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,u.queueUpdate((()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1}))))}}var MB,_B,EB,IB,DB,AB,TB,OB,RB
|
|
12930
|
+
!function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"}(MB||(MB={})),function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"}(_B||(_B={})),function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"}(EB||(EB={})),function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"}(IB||(IB={})),function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"}(DB||(DB={})),function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth",t[t.DurationSecond=-27]="DurationSecond",t[t.DurationMillisecond=-28]="DurationMillisecond",t[t.DurationMicrosecond=-29]="DurationMicrosecond",t[t.DurationNanosecond=-30]="DurationNanosecond"}(AB||(AB={})),function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"}(TB||(TB={}))
|
|
12931
|
+
class FB{static isNull(t){return(null==t?void 0:t.typeId)===AB.Null}static isInt(t){return(null==t?void 0:t.typeId)===AB.Int}static isFloat(t){return(null==t?void 0:t.typeId)===AB.Float}static isBinary(t){return(null==t?void 0:t.typeId)===AB.Binary}static isLargeBinary(t){return(null==t?void 0:t.typeId)===AB.LargeBinary}static isUtf8(t){return(null==t?void 0:t.typeId)===AB.Utf8}static isLargeUtf8(t){return(null==t?void 0:t.typeId)===AB.LargeUtf8}static isBool(t){return(null==t?void 0:t.typeId)===AB.Bool}static isDecimal(t){return(null==t?void 0:t.typeId)===AB.Decimal}static isDate(t){return(null==t?void 0:t.typeId)===AB.Date}static isTime(t){return(null==t?void 0:t.typeId)===AB.Time}static isTimestamp(t){return(null==t?void 0:t.typeId)===AB.Timestamp}static isInterval(t){return(null==t?void 0:t.typeId)===AB.Interval}static isDuration(t){return(null==t?void 0:t.typeId)===AB.Duration}static isList(t){return(null==t?void 0:t.typeId)===AB.List}static isStruct(t){return(null==t?void 0:t.typeId)===AB.Struct}static isUnion(t){return(null==t?void 0:t.typeId)===AB.Union}static isFixedSizeBinary(t){return(null==t?void 0:t.typeId)===AB.FixedSizeBinary}static isFixedSizeList(t){return(null==t?void 0:t.typeId)===AB.FixedSizeList}static isMap(t){return(null==t?void 0:t.typeId)===AB.Map}static isDictionary(t){return(null==t?void 0:t.typeId)===AB.Dictionary}static isDenseUnion(t){return FB.isUnion(t)&&t.mode===MB.Dense}static isSparseUnion(t){return FB.isUnion(t)&&t.mode===MB.Sparse}constructor(t){this.typeId=t}}OB=Symbol.toStringTag,FB[OB]=((RB=FB.prototype).children=null,RB.ArrayType=Array,RB.OffsetArrayType=Int32Array,RB[Symbol.toStringTag]="DataType")
|
|
12932
|
+
class NB extends FB{constructor(){super(AB.Null)}toString(){return"Null"}}NB[Symbol.toStringTag]=(t=>t[Symbol.toStringTag]="Null")(NB.prototype)
|
|
12933
|
+
class PB extends FB{constructor(t,e){super(AB.Int),this.isSigned=t,this.bitWidth=e}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array
|
|
12909
12934
|
case 16:return this.isSigned?Int16Array:Uint16Array
|
|
12910
12935
|
case 32:return this.isSigned?Int32Array:Uint32Array
|
|
12911
|
-
case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}
|
|
12912
|
-
class
|
|
12913
|
-
case
|
|
12914
|
-
case
|
|
12915
|
-
class
|
|
12916
|
-
class
|
|
12917
|
-
class
|
|
12918
|
-
class
|
|
12919
|
-
class
|
|
12920
|
-
class
|
|
12921
|
-
class
|
|
12922
|
-
class
|
|
12923
|
-
case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}
|
|
12924
|
-
class
|
|
12925
|
-
class
|
|
12926
|
-
class
|
|
12927
|
-
class
|
|
12928
|
-
class
|
|
12929
|
-
class
|
|
12930
|
-
class
|
|
12931
|
-
class
|
|
12932
|
-
class
|
|
12933
|
-
if(super(
|
|
12936
|
+
case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}PB[Symbol.toStringTag]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(PB.prototype)
|
|
12937
|
+
class LB extends FB{constructor(t){super(AB.Float),this.precision=t}get ArrayType(){switch(this.precision){case _B.HALF:return Uint16Array
|
|
12938
|
+
case _B.SINGLE:return Float32Array
|
|
12939
|
+
case _B.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}LB[Symbol.toStringTag]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(LB.prototype)
|
|
12940
|
+
class zB extends FB{constructor(){super(AB.Binary)}toString(){return"Binary"}}zB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(zB.prototype)
|
|
12941
|
+
class VB extends FB{constructor(){super(AB.LargeBinary)}toString(){return"LargeBinary"}}VB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeBinary"))(VB.prototype)
|
|
12942
|
+
class HB extends FB{constructor(){super(AB.Utf8)}toString(){return"Utf8"}}HB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(HB.prototype)
|
|
12943
|
+
class BB extends FB{constructor(){super(AB.LargeUtf8)}toString(){return"LargeUtf8"}}BB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeUtf8"))(BB.prototype)
|
|
12944
|
+
class qB extends FB{constructor(){super(AB.Bool)}toString(){return"Bool"}}qB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(qB.prototype)
|
|
12945
|
+
class UB extends FB{constructor(t,e,n=128){super(AB.Decimal),this.scale=t,this.precision=e,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}UB[Symbol.toStringTag]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(UB.prototype)
|
|
12946
|
+
class jB extends FB{constructor(t){super(AB.Date),this.unit=t}toString(){return`Date${32*(this.unit+1)}<${EB[this.unit]}>`}}jB[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Date"))(jB.prototype)
|
|
12947
|
+
class WB extends FB{constructor(t,e){super(AB.Time),this.unit=t,this.bitWidth=e}toString(){return`Time${this.bitWidth}<${IB[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array
|
|
12948
|
+
case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}WB[Symbol.toStringTag]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(WB.prototype)
|
|
12949
|
+
class ZB extends FB{constructor(t,e){super(AB.Timestamp),this.unit=t,this.timezone=e}toString(){return`Timestamp<${IB[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}ZB[Symbol.toStringTag]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Timestamp"))(ZB.prototype)
|
|
12950
|
+
class GB extends FB{constructor(t){super(AB.Interval),this.unit=t}toString(){return`Interval<${DB[this.unit]}>`}}GB[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(GB.prototype)
|
|
12951
|
+
class KB extends FB{constructor(t){super(AB.Duration),this.unit=t}toString(){return`Duration<${IB[this.unit]}>`}}KB[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Duration"))(KB.prototype)
|
|
12952
|
+
class JB extends FB{constructor(t){super(AB.List),this.children=[t]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}}JB[Symbol.toStringTag]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(JB.prototype)
|
|
12953
|
+
class XB extends FB{constructor(t){super(AB.Struct),this.children=t}toString(){return`Struct<{${this.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}XB[Symbol.toStringTag]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(XB.prototype)
|
|
12954
|
+
class YB extends FB{constructor(t,e,n){super(AB.Union),this.mode=t,this.children=n,this.typeIds=e=Int32Array.from(e),this.typeIdToChildIndex=e.reduce(((t,e,n)=>(t[e]=n)&&t||t),Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map((t=>`${t.type}`)).join(" | ")}>`}}YB[Symbol.toStringTag]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(YB.prototype)
|
|
12955
|
+
class QB extends FB{constructor(t){super(AB.FixedSizeBinary),this.byteWidth=t}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}QB[Symbol.toStringTag]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(QB.prototype)
|
|
12956
|
+
class tq extends FB{constructor(t,e){super(AB.FixedSizeList),this.listSize=t,this.children=[e]}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}>`}}tq[Symbol.toStringTag]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(tq.prototype)
|
|
12957
|
+
class eq extends FB{constructor(t,e=!1){var n,i,o
|
|
12958
|
+
if(super(AB.Map),this.children=[t],this.keysSorted=e,t&&(t.name="entries",null===(n=null==t?void 0:t.type)||void 0===n?void 0:n.children)){const e=null===(i=null==t?void 0:t.type)||void 0===i?void 0:i.children[0]
|
|
12934
12959
|
e&&(e.name="key")
|
|
12935
12960
|
const n=null===(o=null==t?void 0:t.type)||void 0===o?void 0:o.children[1]
|
|
12936
|
-
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((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}
|
|
12937
|
-
const
|
|
12938
|
-
var
|
|
12939
|
-
class
|
|
12940
|
-
return Number(t)}(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}>`}}
|
|
12941
|
-
class
|
|
12961
|
+
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((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}eq[Symbol.toStringTag]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(eq.prototype)
|
|
12962
|
+
const nq=(iq=-1,()=>++iq)
|
|
12963
|
+
var iq
|
|
12964
|
+
class oq extends FB{constructor(t,e,n,i){super(AB.Dictionary),this.indices=e,this.dictionary=t,this.isOrdered=i||!1,this.id=null==n?nq():function(t){if("bigint"==typeof t&&(t<Number.MIN_SAFE_INTEGER||t>Number.MAX_SAFE_INTEGER))throw new TypeError(`${t} is not safe to convert to a number.`)
|
|
12965
|
+
return Number(t)}(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}>`}}oq[Symbol.toStringTag]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))(oq.prototype)
|
|
12966
|
+
class sq{constructor(t){this.wafermap=t,this.invalidGridDimensions=!1,this.invalidDiesTableSchema=!1}getValidity(){return{invalidGridDimensions:this.invalidGridDimensions,invalidDiesTableSchema:this.invalidDiesTableSchema}}isValid(){return Object.values(this.getValidity()).every((t=>!1===t))}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
|
|
12942
12967
|
else{const t=this.wafermap.diesTable.schema.fields,e=t.find((t=>"colIndex"===t.name)),n=t.find((t=>"rowIndex"===t.name)),i=t.find((t=>"value"===t.name))
|
|
12943
|
-
e&&n&&i&&
|
|
12968
|
+
e&&n&&i&&FB.isInt(e.type)&&32===e.type.bitWidth&&FB.isInt(n.type)&&32===n.type.bitWidth&&FB.isFloat(i.type)&&i.type.precision===_B.DOUBLE||(this.invalidDiesTableSchema=!0)}return!this.invalidDiesTableSchema}}class rq{constructor(t){this.wafermap=t}drawWafer(){this.renderHover()}renderHover(){this.wafermap.hoverWidth=this.wafermap.experimentalDataManager.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.experimentalDataManager.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 t=this.wafermap.experimentalDataManager.horizontalScale(this.wafermap.hoverDie.x)
|
|
12944
12969
|
if(void 0===t)return""
|
|
12945
12970
|
const e=this.wafermap.experimentalDataManager.verticalScale(this.wafermap.hoverDie.y)
|
|
12946
12971
|
if(void 0===e)return""
|
|
12947
12972
|
const n=this.wafermap.transform.apply([t+this.wafermap.experimentalDataManager.margin.left,e+this.wafermap.experimentalDataManager.margin.top])
|
|
12948
|
-
return`translate(${n[0]}, ${n[1]})`}return""}}class
|
|
12973
|
+
return`translate(${n[0]}, ${n[1]})`}return""}}class aq{constructor(t){this.wafermap=t,this.onMouseMove=t=>{if(!this.wafermap.isExperimentalUpdate())return
|
|
12949
12974
|
const e=this.wafermap.transform.invert([t.offsetX,t.offsetY]),n=this.calculateDieCoordinates({x:e[0],y:e[1]})
|
|
12950
12975
|
if(void 0===n)return void(this.wafermap.hoverDie=void 0)
|
|
12951
12976
|
const i=this.wafermap.diesTable.getChild("colIndex").toArray(),o=this.wafermap.diesTable.getChild("rowIndex").toArray()
|
|
12952
12977
|
for(let t=0;t<i.length;t++)if(i[t]===n.x&&o[t]===n.y)return void(this.wafermap.hoverDie={index:t,x:n.x,y:n.y})
|
|
12953
|
-
this.wafermap.hoverDie=void 0},this.onMouseOut=t=>{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(t){if(this.wafermap.isExperimentalUpdate()){const e=this.wafermap.originLocation,n=e===
|
|
12954
|
-
return{x:n(this.wafermap.experimentalDataManager.horizontalScale.invert(t.x-this.wafermap.experimentalDataManager.margin.left)),y:i(this.wafermap.experimentalDataManager.verticalScale.invert(t.y-this.wafermap.experimentalDataManager.margin.top))}}}}class
|
|
12978
|
+
this.wafermap.hoverDie=void 0},this.onMouseOut=t=>{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(t){if(this.wafermap.isExperimentalUpdate()){const e=this.wafermap.originLocation,n=e===uB||e===fB?Math.floor:Math.ceil,i=e===uB||e===pB?Math.ceil:Math.floor
|
|
12979
|
+
return{x:n(this.wafermap.experimentalDataManager.horizontalScale.invert(t.x-this.wafermap.experimentalDataManager.margin.left)),y:i(this.wafermap.experimentalDataManager.verticalScale.invert(t.y-this.wafermap.experimentalDataManager.margin.top))}}}}class lq{constructor(t){this.wafermap=t,this.scaleExtent=[1,100],this.minExtentPoint=[0,0],this.onWheelMove=t=>{t.preventDefault()}}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)}createZoomBehavior(){vH().scaleExtent(this.scaleExtent).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth,this.wafermap.canvasHeight]]).on("zoom",(t=>{this.wafermap.transform=t.transform}))(KL(this.wafermap))}}class cq extends Ve{constructor(){super(...arguments),this.waferMapUpdateTracker=new $B(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.experimentalDataManager=new CB(this.asRequiredFieldsWaferMap),this.dataManager=new class{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(t){this.wafermap=t,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(t){this.wafermap=t,this.defaultPadding=0,this.baseMarginPercentage=.04}updateContainerDimensions(){const t={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},e=Math.min(t.width,t.height),n={top:(t.height-e)/2,right:(t.width-e)/2,bottom:(t.height-e)/2,left:(t.width-e)/2},i={top:e*this.baseMarginPercentage,right:e*this.baseMarginPercentage,bottom:e*this.baseMarginPercentage,left:e*this.baseMarginPercentage}
|
|
12955
12980
|
this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(t,this._margin)
|
|
12956
12981
|
const o=Math.min(this._containerDimensions.width,this._containerDimensions.height)
|
|
12957
12982
|
this._radius=o/2,this.updateScales()}updateScales(){const t=Math.min(this._containerDimensions.width,this._containerDimensions.height),e=this.gridDimensionsValidAndDefined()?this.calculateGridDimensionsFromBoundingBox():this.calculateGridDimensionsFromDies(this.wafermap.dies),n=this.wafermap.originLocation
|
|
@@ -12959,30 +12984,30 @@ this._horizontalScale=this.createHorizontalScale(n,e,t),this._invertedHorizontal
|
|
|
12959
12984
|
return"number"==typeof this.wafermap.gridMaxY&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX&&(t.origin.x=this.wafermap.gridMinX,t.origin.y=this.wafermap.gridMinY,t.rows=this.wafermap.gridMaxY-this.wafermap.gridMinY+1,t.cols=this.wafermap.gridMaxX-this.wafermap.gridMinX+1),t}calculateGridDimensionsFromDies(t){if(0===t.length||void 0===t[0])return{origin:{x:0,y:0},rows:0,cols:0}
|
|
12960
12985
|
const e={x:t[0].x,y:t[0].y},n={x:t[0].x,y:t[0].y}
|
|
12961
12986
|
for(const i of t)i.x<e.x&&(e.x=i.x),i.y<e.y&&(e.y=i.y),i.x>n.x&&(n.x=i.x),i.y>n.y&&(n.y=i.y)
|
|
12962
|
-
return{origin:e,rows:n.y-e.y+1,cols:n.x-e.x+1}}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e,n){const i=
|
|
12963
|
-
return t===
|
|
12964
|
-
return t===
|
|
12965
|
-
return t===
|
|
12966
|
-
return t===
|
|
12967
|
-
return void 0===n||void 0===i?null:{x:n+e.right,y:i+e.top,fillStyle:this.calculateFillStyle(t.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,t.tags),text:this.buildLabel(t.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(t,e){return Math.min(t.height,t.width/(.5*Math.max(2,e))*this.fontSizeFactor)}createD3ColorScale(t,e){return this.isColorScaleLinear(e)?
|
|
12987
|
+
return{origin:e,rows:n.y-e.y+1,cols:n.x-e.x+1}}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e,n){const i=VH().domain(NH(e.origin.x,e.origin.x+e.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
|
|
12988
|
+
return t===uB||t===fB?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(t,e,n){const i=hB().domain([0,n])
|
|
12989
|
+
return t===uB||t===fB?i.range(NH(e.origin.x,e.origin.x+e.cols)):i.range(NH(e.origin.x,e.origin.x+e.cols).reverse())}createVerticalScale(t,e,n){const i=VH().domain(NH(e.origin.y,e.origin.y+e.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
|
|
12990
|
+
return t===uB||t===pB?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(t,e,n){const i=hB().domain([0,n])
|
|
12991
|
+
return t===uB||t===pB?i.range(NH(e.origin.y,e.origin.y+e.rows).reverse()):i.range(NH(e.origin.y,e.origin.y+e.rows))}calculateMarginAddition(t,e){return{top:t.top+e.top,right:t.right+e.right,bottom:t.bottom+e.bottom,left:t.left+e.left}}}(t),this.prerendering=new class{get labelsFontSize(){return this._labelsFontSize}get diesRenderInfo(){return this._diesRenderInfo}constructor(t){this.wafermap=t,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),this._diesRenderInfo=this.wafermap.dies.map((t=>this.computeDieRenderInfo(t))).filter((t=>null!==t))}computeDieRenderInfo(t){const e=this.wafermap.dataManager.margin,n=this.wafermap.dataManager.horizontalScale(t.x),i=this.wafermap.dataManager.verticalScale(t.y)
|
|
12992
|
+
return void 0===n||void 0===i?null:{x:n+e.right,y:i+e.top,fillStyle:this.calculateFillStyle(t.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,t.tags),text:this.buildLabel(t.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(t,e){return Math.min(t.height,t.width/(.5*Math.max(2,e))*this.fontSizeFactor)}createD3ColorScale(t,e){return this.isColorScaleLinear(e)?dB().domain(t.values.map((t=>+t))).range(t.colors):zH().domain(t.values).range(t.colors)}dieHasData(t){return null!=t&&""!==t}buildLabel(t,e,n,i){if(n||!this.dieHasData(t))return""
|
|
12968
12993
|
const o=`${t}${i}`
|
|
12969
12994
|
return o.length>=e?`${o.substring(0,e)}…`:o}calculateOpacity(t,e){if(!e||0===e.length)return 1
|
|
12970
12995
|
const n=new Set(e)
|
|
12971
|
-
return t?.some((t=>n.has(t)))?1:this.nonHighlightedOpacity}isColorScaleLinear(t){return t===
|
|
12996
|
+
return t?.some((t=>n.has(t)))?1:this.nonHighlightedOpacity}isColorScaleLinear(t){return t===bB}isColorScaleOrdinal(t){return t===yB}calculateFillStyle(t,e,n,i){let o=this.emptyDieColor
|
|
12972
12997
|
if(this.dieHasData(t)&&(isNaN(+t)?o=this.nanDieColor:this.isColorScaleLinear(e)?o=this.d3ColorScale(+t):this.isColorScaleOrdinal(e)&&(o=this.d3ColorScale(t))),void 0===o)return this.emptyDieColor
|
|
12973
12998
|
let s=Ko(o)
|
|
12974
|
-
return null===s?this.emptyDieColor:(s=new Ho(s.r,s.g,s.b,this.calculateOpacity(i,n)),s.toStringWebRGBA())}}(t)}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(t){return this.dataMap.get(`${t.x}_${t.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((t=>[`${t.x}_${t.y}`,t])))}}(this.asRequiredFieldsWaferMap),this.workerRenderer=new
|
|
12999
|
+
return null===s?this.emptyDieColor:(s=new Ho(s.r,s.g,s.b,this.calculateOpacity(i,n)),s.toStringWebRGBA())}}(t)}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(t){return this.dataMap.get(`${t.x}_${t.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((t=>[`${t.x}_${t.y}`,t])))}}(this.asRequiredFieldsWaferMap),this.workerRenderer=new rq(this.asRequiredFieldsWaferMap),this.renderer=new kB(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(t){this.wafermap=t,this.onMouseMove=t=>{if(this.wafermap.isExperimentalUpdate())return
|
|
12975
13000
|
const e={x:t.offsetX,y:t.offsetY}
|
|
12976
13001
|
if(!this.hoversOverDie(e))return void(this.wafermap.hoverDie=void 0)
|
|
12977
13002
|
const n=this.wafermap.transform.invert([e.x,e.y]),i=this.calculateDieCoordinates({x:n[0],y:n[1]})
|
|
12978
|
-
this.wafermap.hoverDie=void 0!==i?this.wafermap.dataManager.getWaferMapDie(i):void 0},this.onMouseOut=t=>{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(t){if(!this.wafermap.isExperimentalUpdate()){const e=this.wafermap.originLocation,n=e===
|
|
13003
|
+
this.wafermap.hoverDie=void 0!==i?this.wafermap.dataManager.getWaferMapDie(i):void 0},this.onMouseOut=t=>{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(t){if(!this.wafermap.isExperimentalUpdate()){const e=this.wafermap.originLocation,n=e===uB||e===fB?Math.floor:Math.ceil,i=e===uB||e===pB?Math.floor:Math.ceil
|
|
12979
13004
|
return{x:n(this.wafermap.dataManager.invertedHorizontalScale(t.x-this.wafermap.dataManager.margin.left)),y:i(this.wafermap.dataManager.invertedVerticalScale(t.y-this.wafermap.dataManager.margin.top))}}}hoversOverDie(t){const e=this.wafermap.canvasContext.getImageData(t.x,t.y,1,1).data
|
|
12980
13005
|
let n=0
|
|
12981
13006
|
for(const t of e)n+=t
|
|
12982
|
-
return n>0}}(this.asRequiredFieldsWaferMap),this.experimentalHoverHandler=new
|
|
13007
|
+
return n>0}}(this.asRequiredFieldsWaferMap),this.experimentalHoverHandler=new aq(this.asRequiredFieldsWaferMap),this.zoomHandler=new lq(this.asRequiredFieldsWaferMap),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new sq(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)}experimentalUpdate(){this.validity.invalidDiesTableSchema||(this.waferMapUpdateTracker.requiresEventsUpdate?(this.zoomHandler.disconnect(),this.waferMapUpdateTracker.requiresContainerDimensionsUpdate||this.waferMapUpdateTracker.requiresScalesUpdate?(this.experimentalDataManager.updateComputations(),this.workerRenderer.drawWafer()):this.waferMapUpdateTracker.requiresLabelsFontSizeUpdate||this.waferMapUpdateTracker.requiresDiesRenderInfoUpdate?(this.experimentalDataManager.updatePrerendering(),this.workerRenderer.drawWafer()):this.waferMapUpdateTracker.requiresDrawnWaferUpdate&&this.workerRenderer.drawWafer(),this.zoomHandler.connect()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.workerRenderer.renderHover())}update(){this.validate(),this.isExperimentalUpdate()?this.experimentalUpdate():this.waferMapUpdateTracker.requiresEventsUpdate?(this.zoomHandler.disconnect(),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.zoomHandler.connect()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.renderer.renderHover()}isExperimentalUpdate(){return void 0!==this.diesTable}validate(){this.waferMapValidator.validateGridDimensions(),this.waferMapValidator.validateDiesTableSchema()}createResizeObserver(){return new ResizeObserver((t=>{const e=t[0]
|
|
12983
13008
|
if(void 0===e)return
|
|
12984
13009
|
const{height:n,width:i}=e.contentRect
|
|
12985
|
-
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}}t([lt({attribute:"origin-location"})],
|
|
12986
|
-
const
|
|
12987
|
-
wi.getOrCreate().withPrefix("nimble").register(
|
|
13010
|
+
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}}t([lt({attribute:"origin-location"})],cq.prototype,"originLocation",void 0),t([lt({attribute:"grid-min-x",converter:rt})],cq.prototype,"gridMinX",void 0),t([lt({attribute:"grid-max-x",converter:rt})],cq.prototype,"gridMaxX",void 0),t([lt({attribute:"grid-min-y",converter:rt})],cq.prototype,"gridMinY",void 0),t([lt({attribute:"grid-max-y",converter:rt})],cq.prototype,"gridMaxY",void 0),t([lt],cq.prototype,"orientation",void 0),t([lt({attribute:"max-characters",converter:rt})],cq.prototype,"maxCharacters",void 0),t([lt({attribute:"die-labels-hidden",mode:"boolean"})],cq.prototype,"dieLabelsHidden",void 0),t([lt({attribute:"die-labels-suffix"})],cq.prototype,"dieLabelsSuffix",void 0),t([lt({attribute:"color-scale-mode"})],cq.prototype,"colorScaleMode",void 0),t([g],cq.prototype,"renderer",void 0),t([g],cq.prototype,"canvasWidth",void 0),t([g],cq.prototype,"canvasHeight",void 0),t([g],cq.prototype,"transform",void 0),t([g],cq.prototype,"hoverTransform",void 0),t([g],cq.prototype,"hoverOpacity",void 0),t([g],cq.prototype,"hoverWidth",void 0),t([g],cq.prototype,"hoverHeight",void 0),t([g],cq.prototype,"hoverDie",void 0),t([g],cq.prototype,"highlightedTags",void 0),t([g],cq.prototype,"dies",void 0),t([g],cq.prototype,"diesTable",void 0),t([g],cq.prototype,"colorScale",void 0)
|
|
13011
|
+
const dq=cq.compose({baseName:"wafer-map",template:bH,styles:yH})
|
|
13012
|
+
wi.getOrCreate().withPrefix("nimble").register(dq())}()
|
|
12988
13013
|
//# sourceMappingURL=all-components-bundle.min.js.map
|