@ni/nimble-components 21.7.1 → 21.8.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.
@@ -11240,7 +11240,7 @@ return new GN(Sa.getValueFor(this),{numberTextFormat:this.format??void 0,decimal
11240
11240
  const QN=YN.compose({baseName:"table-column-number-text",template:RN,styles:zD})
11241
11241
  bi.getOrCreate().withPrefix("nimble").register(QN())
11242
11242
  const eP=[...CN,"unsupportedMappingType","invalidIconName","missingTextValue"]
11243
- class tP extends SN{constructor(e){super(e,eP)}static isIconMappingElement(e){return e instanceof Mv}static isSupportedMappingElement(e){return e instanceof Mv||e instanceof Ev}validate(e,t){super.validate(e,t),this.validateMappingTypes(e),this.validateIconNames(e),this.validateNoMissingText(e)}validateIconNames(e){const t=e.filter(tP.isIconMappingElement).some((e=>void 0===e.resolvedIcon))
11243
+ class tP extends SN{constructor(e){super(e,eP)}static isIconMappingElement(e){return e instanceof Mv}static isSupportedMappingElement(e){return e instanceof Mv||e instanceof Ev}static hasUnresolvedIcon(e){return"string"==typeof e.icon&&void 0===e.resolvedIcon}validate(e,t){super.validate(e,t),this.validateMappingTypes(e),this.validateIconNames(e),this.validateNoMissingText(e)}validateIconNames(e){const t=e.filter(tP.isIconMappingElement).some(tP.hasUnresolvedIcon)
11244
11244
  this.setConditionValue("invalidIconName",t)}validateNoMissingText(e){const t=e.filter(tP.isSupportedMappingElement).some((e=>void 0===e.text))
11245
11245
  this.setConditionValue("missingTextValue",t)}validateMappingTypes(e){const t=e.every(tP.isSupportedMappingElement)
11246
11246
  this.setConditionValue("unsupportedMappingType",!t)}}const nP=we`
@@ -11281,24 +11281,25 @@ this.setConditionValue("unsupportedMappingType",!t)}}const nP=we`
11281
11281
  title="${e=>e.hasOverflow&&e.text?e.text:null}"
11282
11282
  >${e=>e.text}</span>
11283
11283
  `)}
11284
- `
11285
- class oP extends _N{constructor(e,t,n){var i
11286
- super(n),this.severity=t,this.iconTemplate=Z`
11287
- <${i=e}
11288
- title="${e=>e.text}"
11289
- role="img"
11290
- aria-label="${e=>e.text}"
11291
- severity="${e=>e.severity}"
11292
- class="no-shrink"
11293
- >
11294
- </${i}>`}}class rP extends _N{constructor(e){super(e)}}class sP extends UD{columnConfigChanged(){this.updateState()}groupHeaderValueChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig)return
11284
+ `,oP=Z` `
11285
+ class rP extends _N{constructor(e,t,n){var i
11286
+ super(n),this.severity=t,this.iconTemplate=void 0===(i=e)?oP:Z`
11287
+ <${i}
11288
+ title="${e=>e.text}"
11289
+ role="img"
11290
+ aria-label="${e=>e.text}"
11291
+ severity="${e=>e.severity}"
11292
+ class="no-shrink"
11293
+ >
11294
+ </${i}>
11295
+ `}}class sP extends _N{constructor(e){super(e)}}class aP extends UD{columnConfigChanged(){this.updateState()}groupHeaderValueChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig)return
11295
11296
  const e=this.groupHeaderValue
11296
11297
  if(null==e)return
11297
11298
  const t=this.columnConfig.mappingConfigs.get(e)
11298
- t instanceof oP?(this.visual="icon",this.severity=t.severity,this.text=t.text??"",this.iconTemplate=t.iconTemplate):t instanceof rP&&(this.visual="spinner",this.text=t.text??"")}}e([g],sP.prototype,"severity",void 0),e([g],sP.prototype,"iconTemplate",void 0),e([g],sP.prototype,"visual",void 0)
11299
- const aP=sP.compose({baseName:"table-column-icon-group-header-view",template:iP,styles:nP})
11300
- bi.getOrCreate().withPrefix("nimble").register(aP())
11301
- const lP=Z`
11299
+ t instanceof rP?(this.visual="icon",this.severity=t.severity,this.text=t.text??"",this.iconTemplate=t.iconTemplate):t instanceof sP&&(this.visual="spinner",this.text=t.text??"")}}e([g],aP.prototype,"severity",void 0),e([g],aP.prototype,"iconTemplate",void 0),e([g],aP.prototype,"visual",void 0)
11300
+ const lP=aP.compose({baseName:"table-column-icon-group-header-view",template:iP,styles:nP})
11301
+ bi.getOrCreate().withPrefix("nimble").register(lP())
11302
+ const cP=Z`
11302
11303
  ${Fe((e=>"icon"===e.visual),(e=>e.iconTemplate))}
11303
11304
  ${Fe((e=>"spinner"===e.visual),Z`
11304
11305
  <${wT}
@@ -11308,22 +11309,22 @@ const lP=Z`
11308
11309
  </${wT}>
11309
11310
  `)}
11310
11311
  `
11311
- class cP extends TR{columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig||!this.cellRecord)return
11312
+ class dP extends TR{columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig||!this.cellRecord)return
11312
11313
  const e=this.cellRecord.value
11313
11314
  if(null==e)return
11314
11315
  const t=this.columnConfig.mappingConfigs.get(e)
11315
- t instanceof oP?(this.visual="icon",this.severity=t.severity,this.text=t.text,this.iconTemplate=t.iconTemplate):t instanceof rP&&(this.visual="spinner",this.text=t.text)}}e([g],cP.prototype,"severity",void 0),e([g],cP.prototype,"text",void 0),e([g],cP.prototype,"iconTemplate",void 0),e([g],cP.prototype,"visual",void 0)
11316
- const dP=cP.compose({baseName:"table-column-icon-cell-view",template:lP})
11317
- bi.getOrCreate().withPrefix("nimble").register(dP())
11318
- class hP extends(VD(FD(yN))){createValidator(){return new tP(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-icon-cell-view",groupHeaderViewTag:"nimble-table-column-icon-group-header-view",delegatedEvents:[],sortOperation:ER}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof Mv){if(!e.resolvedIcon)throw Error("Unresolved icon")
11319
- return new oP(e.resolvedIcon,e.severity,e.text)}if(e instanceof Ev)return new rP(e.text)
11320
- throw new Error("Unsupported mapping")}}const uP=hP.compose({baseName:"table-column-icon",template:kN,styles:xN})
11321
- bi.getOrCreate().withPrefix("nimble").register(uP())
11322
- const pP=class extends rN{cellRecordChanged(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:iN,styles:oN})
11316
+ t instanceof rP?(this.visual="icon",this.severity=t.severity,this.text=t.text,this.iconTemplate=t.iconTemplate):t instanceof sP&&(this.visual="spinner",this.text=t.text)}}e([g],dP.prototype,"severity",void 0),e([g],dP.prototype,"text",void 0),e([g],dP.prototype,"iconTemplate",void 0),e([g],dP.prototype,"visual",void 0)
11317
+ const hP=dP.compose({baseName:"table-column-icon-cell-view",template:cP})
11318
+ bi.getOrCreate().withPrefix("nimble").register(hP())
11319
+ class uP extends(VD(FD(yN))){createValidator(){return new tP(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-icon-cell-view",groupHeaderViewTag:"nimble-table-column-icon-group-header-view",delegatedEvents:[],sortOperation:ER}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof Mv)return new rP(e.resolvedIcon,e.severity,e.text)
11320
+ if(e instanceof Ev)return new sP(e.text)
11321
+ throw new Error("Unsupported mapping")}}const pP=uP.compose({baseName:"table-column-icon",template:kN,styles:xN})
11323
11322
  bi.getOrCreate().withPrefix("nimble").register(pP())
11324
- const fP=class extends YD{getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-text-cell-view",groupHeaderViewTag:KD,delegatedEvents:[],sortOperation:IR}}}.compose({baseName:"table-column-text",template:LD,styles:zD})
11323
+ const fP=class extends rN{cellRecordChanged(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:iN,styles:oN})
11325
11324
  bi.getOrCreate().withPrefix("nimble").register(fP())
11326
- const mP=we`
11325
+ const mP=class extends YD{getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-text-cell-view",groupHeaderViewTag:KD,delegatedEvents:[],sortOperation:IR}}}.compose({baseName:"table-column-text",template:LD,styles:zD})
11326
+ bi.getOrCreate().withPrefix("nimble").register(mP())
11327
+ const gP=we`
11327
11328
  ${Oo("grid")}
11328
11329
 
11329
11330
  :host {
@@ -11351,7 +11352,7 @@ const mP=we`
11351
11352
  overflow: auto;
11352
11353
  }
11353
11354
  `
11354
- const gP=class extends oo{constructor(){super(),this.activeindicator=!1}}.compose({baseName:"tabs",baseClass:oo,template:(e,t)=>Z`
11355
+ const vP=class extends oo{constructor(){super(),this.activeindicator=!1}}.compose({baseName:"tabs",baseClass:oo,template:(e,t)=>Z`
11355
11356
  <template class="${e=>e.orientation}">
11356
11357
  ${et(0,t)}
11357
11358
  <div class="tablist" part="tablist" role="tablist">
@@ -11370,9 +11371,9 @@ const gP=class extends oo{constructor(){super(),this.activeindicator=!1}}.compos
11370
11371
  <slot name="tabpanel" ${Ke("tabpanels")}></slot>
11371
11372
  </div>
11372
11373
  </template>
11373
- `,styles:mP})
11374
- bi.getOrCreate().withPrefix("nimble").register(gP())
11375
- const vP=we`
11374
+ `,styles:gP})
11375
+ bi.getOrCreate().withPrefix("nimble").register(vP())
11376
+ const bP=we`
11376
11377
  ${Oo("flex")}
11377
11378
 
11378
11379
  :host {
@@ -11390,15 +11391,15 @@ const vP=we`
11390
11391
  rgba(${La}, 0.3);
11391
11392
  margin: ${ol} ${rl};
11392
11393
  }
11393
- `,bP=Z`
11394
+ `,wP=Z`
11394
11395
  <template slot="end">
11395
11396
  <div class="separator"></div>
11396
11397
  <slot></slot>
11397
11398
  </template>
11398
11399
  `
11399
- const wP=class extends Lt{}.compose({baseName:"tabs-toolbar",template:bP,styles:vP})
11400
- bi.getOrCreate().withPrefix("nimble").register(wP())
11401
- const yP="outline",xP="block",kP=we`
11400
+ const yP=class extends Lt{}.compose({baseName:"tabs-toolbar",template:wP,styles:bP})
11401
+ bi.getOrCreate().withPrefix("nimble").register(yP())
11402
+ const xP="outline",kP="block",CP=we`
11402
11403
  ${Oo("inline-flex")}
11403
11404
  ${sg}
11404
11405
 
@@ -11538,12 +11539,12 @@ const yP="outline",xP="block",kP=we`
11538
11539
  top: ${rl};
11539
11540
  right: var(--ni-private-scrollbar-width);
11540
11541
  }
11541
- `.withBehaviors(oh(yP,we`
11542
+ `.withBehaviors(oh(xP,we`
11542
11543
  .control {
11543
11544
  border-color: rgba(${La}, 0.3);
11544
11545
  background-color: transparent;
11545
11546
  }
11546
- `),oh(xP,we`
11547
+ `),oh(kP,we`
11547
11548
  .control {
11548
11549
  background-color: rgba(${La}, 0.1);
11549
11550
  }
@@ -11561,8 +11562,8 @@ const yP="outline",xP="block",kP=we`
11561
11562
  border-bottom-color: ${Fa};
11562
11563
  }
11563
11564
  `))
11564
- class CP extends lo{constructor(){super(...arguments),this.appearance=yP,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(e,t){super.valueChanged(e,t),this.queueUpdateScrollbarWidth()}onResize(){this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,u.queueUpdate((()=>this.updateScrollbarWidth()))))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}}e([se],CP.prototype,"appearance",void 0),e([se({attribute:"error-text"})],CP.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],CP.prototype,"errorVisible",void 0),e([g],CP.prototype,"scrollbarWidth",void 0)
11565
- const SP=CP.compose({baseName:"text-area",baseClass:lo,template:()=>Z`
11565
+ class SP extends lo{constructor(){super(...arguments),this.appearance=xP,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(e,t){super.valueChanged(e,t),this.queueUpdateScrollbarWidth()}onResize(){this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,u.queueUpdate((()=>this.updateScrollbarWidth()))))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}}e([se],SP.prototype,"appearance",void 0),e([se({attribute:"error-text"})],SP.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],SP.prototype,"errorVisible",void 0),e([g],SP.prototype,"scrollbarWidth",void 0)
11566
+ const $P=SP.compose({baseName:"text-area",baseClass:lo,template:()=>Z`
11566
11567
  <label
11567
11568
  part="label"
11568
11569
  for="control"
@@ -11619,9 +11620,9 @@ const SP=CP.compose({baseName:"text-area",baseClass:lo,template:()=>Z`
11619
11620
  ></${hm}>
11620
11621
  ${Qm}
11621
11622
  </div>
11622
- `,styles:kP,shadowOptions:{delegatesFocus:!0}})
11623
- bi.getOrCreate().withPrefix("nimble").register(SP())
11624
- const $P="underline",MP="outline",_P="block",EP="frameless",IP=we`
11623
+ `,styles:CP,shadowOptions:{delegatesFocus:!0}})
11624
+ bi.getOrCreate().withPrefix("nimble").register($P())
11625
+ const MP="underline",_P="outline",EP="block",IP="frameless",AP=we`
11625
11626
  ${Oo("inline-block")}
11626
11627
  ${sg}
11627
11628
 
@@ -11793,12 +11794,12 @@ const $P="underline",MP="outline",_P="block",EP="frameless",IP=we`
11793
11794
  slot[name='actions']::slotted(*) {
11794
11795
  ${nl.cssCustomProperty}: 24px;
11795
11796
  }
11796
- `.withBehaviors(oh($P,we`
11797
+ `.withBehaviors(oh(MP,we`
11797
11798
  .root {
11798
11799
  border-bottom-width: ${ll};
11799
11800
  padding-bottom: 0;
11800
11801
  }
11801
- `),oh(_P,we`
11802
+ `),oh(EP,we`
11802
11803
  .root {
11803
11804
  background-color: rgba(${La}, 0.1);
11804
11805
  }
@@ -11826,12 +11827,12 @@ const $P="underline",MP="outline",_P="block",EP="frameless",IP=we`
11826
11827
  :host([disabled]) .root {
11827
11828
  background-color: rgba(${La}, 0.07);
11828
11829
  }
11829
- `),oh(MP,we`
11830
+ `),oh(_P,we`
11830
11831
  .root {
11831
11832
  border-width: ${ll};
11832
11833
  padding: 0;
11833
11834
  }
11834
- `),oh(EP,we`
11835
+ `),oh(IP,we`
11835
11836
  .control {
11836
11837
  padding-left: ${ll};
11837
11838
  padding-right: ${ll};
@@ -11849,8 +11850,8 @@ const $P="underline",MP="outline",_P="block",EP="frameless",IP=we`
11849
11850
  filter: invert(100%);
11850
11851
  }
11851
11852
  `))
11852
- class AP extends Li{constructor(){super(...arguments),this.appearance=$P,this.errorVisible=!1,this.fullBleed=!1}}e([se],AP.prototype,"appearance",void 0),e([se({attribute:"error-text"})],AP.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],AP.prototype,"errorVisible",void 0),e([se({attribute:"full-bleed",mode:"boolean"})],AP.prototype,"fullBleed",void 0)
11853
- const OP=AP.compose({baseName:"text-field",baseClass:Li,template:(e,t)=>Z`
11853
+ class OP extends Li{constructor(){super(...arguments),this.appearance=MP,this.errorVisible=!1,this.fullBleed=!1}}e([se],OP.prototype,"appearance",void 0),e([se({attribute:"error-text"})],OP.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],OP.prototype,"errorVisible",void 0),e([se({attribute:"full-bleed",mode:"boolean"})],OP.prototype,"fullBleed",void 0)
11854
+ const TP=OP.compose({baseName:"text-field",baseClass:Li,template:(e,t)=>Z`
11854
11855
  <template
11855
11856
  class="
11856
11857
  ${e=>e.readOnly?"readonly":""}
@@ -11910,7 +11911,7 @@ const OP=AP.compose({baseName:"text-field",baseClass:Li,template:(e,t)=>Z`
11910
11911
  ${Qe(0,t)}
11911
11912
  </div>
11912
11913
  </template>
11913
- `,styles:IP,shadowOptions:{delegatesFocus:!0},end:Z`
11914
+ `,styles:AP,shadowOptions:{delegatesFocus:!0},end:Z`
11914
11915
  <${hm}
11915
11916
  severity="error"
11916
11917
  class="error-icon"
@@ -11920,8 +11921,8 @@ const OP=AP.compose({baseName:"text-field",baseClass:Li,template:(e,t)=>Z`
11920
11921
  </span>
11921
11922
  ${Qm}
11922
11923
  `})
11923
- bi.getOrCreate().withPrefix("nimble").register(OP())
11924
- const TP=we`
11924
+ bi.getOrCreate().withPrefix("nimble").register(TP())
11925
+ const RP=we`
11925
11926
  ${Oo("inline-flex")}
11926
11927
 
11927
11928
  :host {
@@ -12006,7 +12007,7 @@ const TP=we`
12006
12007
  .status-icon {
12007
12008
  opacity: 0.6;
12008
12009
  }
12009
- `)),RP=Z`
12010
+ `)),DP=Z`
12010
12011
  ${Fe((e=>e.tooltipVisible),Z`
12011
12012
  <${Eh}
12012
12013
  class="anchored-region"
@@ -12039,11 +12040,11 @@ const TP=we`
12039
12040
  </${Eh}>
12040
12041
  `)}
12041
12042
  `
12042
- class DP extends _o{constructor(){super(...arguments),this.iconVisible=!1}}e([se],DP.prototype,"severity",void 0),e([se({attribute:"icon-visible",mode:"boolean"})],DP.prototype,"iconVisible",void 0)
12043
- const NP=DP.compose({baseName:"tooltip",baseClass:_o,template:RP,styles:TP})
12044
- bi.getOrCreate().withPrefix("nimble").register(NP())
12045
- const PP="group-selected",zP="all",LP="leaves-only",FP="none"
12046
- class VP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=null}handleChange({target:e,token:t}){this.attach(t.getValueFor(e))}attach(e){this.attached!==this[e]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[e],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const HP=we`
12043
+ class NP extends _o{constructor(){super(...arguments),this.iconVisible=!1}}e([se],NP.prototype,"severity",void 0),e([se({attribute:"icon-visible",mode:"boolean"})],NP.prototype,"iconVisible",void 0)
12044
+ const PP=NP.compose({baseName:"tooltip",baseClass:_o,template:DP,styles:RP})
12045
+ bi.getOrCreate().withPrefix("nimble").register(PP())
12046
+ const zP="group-selected",LP="all",FP="leaves-only",VP="none"
12047
+ class HP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=null}handleChange({target:e,token:t}){this.attach(t.getValueFor(e))}attach(e){this.attached!==this[e]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[e],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const BP=we`
12047
12048
  ${Oo("block")}
12048
12049
 
12049
12050
  :host {
@@ -12064,7 +12065,7 @@ class VP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
12064
12065
  }
12065
12066
 
12066
12067
  ${""}
12067
- :host([${PP}])::after {
12068
+ :host([${zP}])::after {
12068
12069
  background: ${qa};
12069
12070
  border-radius: 0px;
12070
12071
  content: '';
@@ -12086,7 +12087,7 @@ class VP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
12086
12087
  background: ${Pa};
12087
12088
  }
12088
12089
 
12089
- :host([${PP}]) .positioning-region:hover {
12090
+ :host([${zP}]) .positioning-region:hover {
12090
12091
  background: ${Na};
12091
12092
  }
12092
12093
 
@@ -12192,7 +12193,7 @@ class VP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
12192
12193
  display: block;
12193
12194
  }
12194
12195
  `.withBehaviors(new class{constructor(e,t){this.cache=new WeakMap,this.ltr=e,this.rtl=t}bind(e){this.attach(e)}unbind(e){const t=this.cache.get(e)
12195
- t&&$a.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new VP(this.ltr,this.rtl,e),n=$a.getValueFor(e)
12196
+ t&&$a.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new HP(this.ltr,this.rtl,e),n=$a.getValueFor(e)
12196
12197
  $a.subscribe(t),t.attach(n),this.cache.set(e,t)}}(we`
12197
12198
  .expand-collapse-button {
12198
12199
  left: var(
@@ -12224,8 +12225,8 @@ $a.subscribe(t),t.attach(n),this.cache.set(e,t)}}(we`
12224
12225
  transform: rotate(135deg);
12225
12226
  }
12226
12227
  `))
12227
- class BP extends Io{constructor(){super(...arguments),this.groupSelected=!1}}e([se({attribute:"group-selected",mode:"boolean"})],BP.prototype,"groupSelected",void 0)
12228
- const qP=BP.compose({baseName:"tree-item",baseClass:Io,template:(e,t)=>Z`
12228
+ class qP extends Io{constructor(){super(...arguments),this.groupSelected=!1}}e([se({attribute:"group-selected",mode:"boolean"})],qP.prototype,"groupSelected",void 0)
12229
+ const jP=qP.compose({baseName:"tree-item",baseClass:Io,template:(e,t)=>Z`
12229
12230
  <template
12230
12231
  role="treeitem"
12231
12232
  slot="${e=>e.isNestedItem()?"item":void 0}"
@@ -12265,9 +12266,9 @@ const qP=BP.compose({baseName:"tree-item",baseClass:Io,template:(e,t)=>Z`
12265
12266
  </div>
12266
12267
  `)}
12267
12268
  </template>
12268
- `,styles:HP,expandCollapseGlyph:qh.data})
12269
- bi.getOrCreate().withPrefix("nimble").register(qP())
12270
- const jP=we`
12269
+ `,styles:BP,expandCollapseGlyph:qh.data})
12270
+ bi.getOrCreate().withPrefix("nimble").register(jP())
12271
+ const UP=we`
12271
12272
  ${Oo("flex")}
12272
12273
 
12273
12274
  :host {
@@ -12279,7 +12280,7 @@ const jP=we`
12279
12280
  :host(${Do}) {
12280
12281
  outline: none;
12281
12282
  }
12282
- `,UP=Z`
12283
+ `,WP=Z`
12283
12284
  <template
12284
12285
  role="tree"
12285
12286
  ${Ne("treeView")}
@@ -12293,246 +12294,246 @@ const jP=we`
12293
12294
  <slot ${Ke("slottedTreeItems")}></slot>
12294
12295
  </template>
12295
12296
  `
12296
- class WP extends Ao{constructor(){super(...arguments),this.selectionMode=zP,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
12297
+ class ZP extends Ao{constructor(){super(...arguments),this.selectionMode=LP,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
12297
12298
  if(!(e.target instanceof Element&&Eo(e.target)))return!0
12298
12299
  const t=e.target
12299
- return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case zP:return!0
12300
- case FP:return!1
12301
- case LP:return!this.itemHasChildren(e)
12302
- default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof BP&&(e.groupSelected=!1)
12300
+ return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case LP:return!0
12301
+ case VP:return!1
12302
+ case FP:return!this.itemHasChildren(e)
12303
+ default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof qP&&(e.groupSelected=!1)
12303
12304
  for(let e of this.selectedItems){for(;null!==e.parentElement&&e.parentElement!==this;)e=e.parentElement
12304
- e instanceof BP&&(e.groupSelected=!0)}}}e([se({attribute:"selection-mode"})],WP.prototype,"selectionMode",void 0),e([g],WP.prototype,"selectedItems",void 0)
12305
- const ZP=WP.compose({baseName:"tree-view",baseClass:Ao,template:UP,styles:jP})
12306
- bi.getOrCreate().withPrefix("nimble").register(ZP())
12307
- const GP=Z`<template slot="unit"></template>`
12308
- class KP{constructor(e,t,n){this.singular=e,this.plural=t,this.symbol=n}}class JP extends VN{constructor(e,{unitTranslations:t,scaledPrefixText:n}){if(super(e),!t.get("en"))throw new Error('English translations must exist with locale string "en"')
12309
- this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(t,this.locale),this.scaledPrefixText=n}static createFactory(e){return t=>new JP(t,e)}format(e){const t=this.formatter.format(e)
12305
+ e instanceof qP&&(e.groupSelected=!0)}}}e([se({attribute:"selection-mode"})],ZP.prototype,"selectionMode",void 0),e([g],ZP.prototype,"selectedItems",void 0)
12306
+ const GP=ZP.compose({baseName:"tree-view",baseClass:Ao,template:WP,styles:UP})
12307
+ bi.getOrCreate().withPrefix("nimble").register(GP())
12308
+ const KP=Z`<template slot="unit"></template>`
12309
+ class JP{constructor(e,t,n){this.singular=e,this.plural=t,this.symbol=n}}class XP extends VN{constructor(e,{unitTranslations:t,scaledPrefixText:n}){if(super(e),!t.get("en"))throw new Error('English translations must exist with locale string "en"')
12310
+ this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(t,this.locale),this.scaledPrefixText=n}static createFactory(e){return t=>new XP(t,e)}format(e){const t=this.formatter.format(e)
12310
12311
  if(""!==this.scaledPrefixText)return`${t} ${this.scaledPrefixText}${this.unitTranslation.symbol}`
12311
12312
  return`${t} ${"one"===this.pluralRules.select(e)?this.unitTranslation.singular:this.unitTranslation.plural}`}getTranslationToUse(e,t){const n=new Intl.Locale(t??"en"),i=n.language,o=n.region
12312
- return(o?e.get(`${i}-${o}`):void 0)??e.get(i)??e.get("en")}}const XP=new Map([["en",new KP("byte","bytes","B")],["fr",new KP("octet","octets","o")],["de",new KP("Byte","Byte","B")],["ja",new KP("バイト","バイト","B")],["zh",new KP("字节","字节","B")]]),YP=[[1,""],[1024,"Ki"],[1048576,"Mi"],[1024**3,"Gi"],[1024**4,"Ti"],[1024**5,"Pi"]]
12313
- const QP=new class extends qN{constructor(){super(YP.map((([e,t])=>new BN(e,JP.createFactory({unitTranslations:XP,scaledPrefixText:t})))))}},ez=[[1,"byte","long"],[1e3,"kilobyte","short"],[1e6,"megabyte","short"],[1e3**3,"gigabyte","short"],[1e3**4,"terabyte","short"],[1e3**5,"petabyte","short"]]
12314
- const tz=new class extends qN{constructor(){super(ez.map((([e,t,n])=>new BN(e,HN.createFactory({style:"unit",unit:t,unitDisplay:n})))))}}
12315
- class nz extends XN{constructor(){super(),this.binary=!1,this.resolvedUnitScale=tz}binaryChanged(){this.resolvedUnitScale=this.binary?QP:tz}}e([se({mode:"boolean"})],nz.prototype,"binary",void 0)
12316
- const iz=nz.compose({baseName:"unit-byte",template:GP})
12317
- bi.getOrCreate().withPrefix("nimble").register(iz())
12318
- const oz=[[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"]],rz=new Map([["en",new KP("volt","volts","V")],["fr",new KP("volt","volts","V")],["de",new KP("Volt","Volt","V")],["ja",new KP("ボルト","ボルト","V")],["zh",new KP("伏特","伏特","V")]])
12319
- const sz=new class extends qN{constructor(){super(oz.map((([e,t])=>new BN(e,JP.createFactory({unitTranslations:rz,scaledPrefixText:t})))))}}
12320
- const az=class extends XN{constructor(){super(),this.resolvedUnitScale=sz}}.compose({baseName:"unit-volt",template:GP})
12321
- bi.getOrCreate().withPrefix("nimble").register(az())
12322
- var lz={value:()=>{}}
12323
- function cz(){for(var e,t=0,n=arguments.length,i={};t<n;++t){if(!(e=arguments[t]+"")||e in i||/[\s.]/.test(e))throw new Error("illegal type: "+e)
12324
- i[e]=[]}return new dz(i)}function dz(e){this._=e}function hz(e,t){for(var n,i=0,o=e.length;i<o;++i)if((n=e[i]).name===t)return n.value}function uz(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=lz,e=e.slice(0,i).concat(e.slice(i+1))
12325
- break}return null!=n&&e.push({name:t,value:n}),e}dz.prototype=cz.prototype={constructor:dz,on:function(e,t){var n,i,o=this._,r=(i=o,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
12313
+ return(o?e.get(`${i}-${o}`):void 0)??e.get(i)??e.get("en")}}const YP=new Map([["en",new JP("byte","bytes","B")],["fr",new JP("octet","octets","o")],["de",new JP("Byte","Byte","B")],["ja",new JP("バイト","バイト","B")],["zh",new JP("字节","字节","B")]]),QP=[[1,""],[1024,"Ki"],[1048576,"Mi"],[1024**3,"Gi"],[1024**4,"Ti"],[1024**5,"Pi"]]
12314
+ const ez=new class extends qN{constructor(){super(QP.map((([e,t])=>new BN(e,XP.createFactory({unitTranslations:YP,scaledPrefixText:t})))))}},tz=[[1,"byte","long"],[1e3,"kilobyte","short"],[1e6,"megabyte","short"],[1e3**3,"gigabyte","short"],[1e3**4,"terabyte","short"],[1e3**5,"petabyte","short"]]
12315
+ const nz=new class extends qN{constructor(){super(tz.map((([e,t,n])=>new BN(e,HN.createFactory({style:"unit",unit:t,unitDisplay:n})))))}}
12316
+ class iz extends XN{constructor(){super(),this.binary=!1,this.resolvedUnitScale=nz}binaryChanged(){this.resolvedUnitScale=this.binary?ez:nz}}e([se({mode:"boolean"})],iz.prototype,"binary",void 0)
12317
+ const oz=iz.compose({baseName:"unit-byte",template:KP})
12318
+ bi.getOrCreate().withPrefix("nimble").register(oz())
12319
+ const rz=[[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"]],sz=new Map([["en",new JP("volt","volts","V")],["fr",new JP("volt","volts","V")],["de",new JP("Volt","Volt","V")],["ja",new JP("ボルト","ボルト","V")],["zh",new JP("伏特","伏特","V")]])
12320
+ const az=new class extends qN{constructor(){super(rz.map((([e,t])=>new BN(e,XP.createFactory({unitTranslations:sz,scaledPrefixText:t})))))}}
12321
+ const lz=class extends XN{constructor(){super(),this.resolvedUnitScale=az}}.compose({baseName:"unit-volt",template:KP})
12322
+ bi.getOrCreate().withPrefix("nimble").register(lz())
12323
+ var cz={value:()=>{}}
12324
+ function dz(){for(var e,t=0,n=arguments.length,i={};t<n;++t){if(!(e=arguments[t]+"")||e in i||/[\s.]/.test(e))throw new Error("illegal type: "+e)
12325
+ i[e]=[]}return new hz(i)}function hz(e){this._=e}function uz(e,t){for(var n,i=0,o=e.length;i<o;++i)if((n=e[i]).name===t)return n.value}function pz(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=cz,e=e.slice(0,i).concat(e.slice(i+1))
12326
+ break}return null!=n&&e.push({name:t,value:n}),e}hz.prototype=dz.prototype={constructor:hz,on:function(e,t){var n,i,o=this._,r=(i=o,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
12326
12327
  if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!i.hasOwnProperty(e))throw new Error("unknown type: "+e)
12327
12328
  return{type:e,name:t}}))),s=-1,a=r.length
12328
12329
  if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t)
12329
- for(;++s<a;)if(n=(e=r[s]).type)o[n]=uz(o[n],e.name,t)
12330
- else if(null==t)for(n in o)o[n]=uz(o[n],e.name,null)
12331
- return this}for(;++s<a;)if((n=(e=r[s]).type)&&(n=hz(o[n],e.name)))return n},copy:function(){var e={},t=this._
12330
+ for(;++s<a;)if(n=(e=r[s]).type)o[n]=pz(o[n],e.name,t)
12331
+ else if(null==t)for(n in o)o[n]=pz(o[n],e.name,null)
12332
+ return this}for(;++s<a;)if((n=(e=r[s]).type)&&(n=uz(o[n],e.name)))return n},copy:function(){var e={},t=this._
12332
12333
  for(var n in t)e[n]=t[n].slice()
12333
- return new dz(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,i,o=new Array(n),r=0;r<n;++r)o[r]=arguments[r+2]
12334
+ return new hz(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,i,o=new Array(n),r=0;r<n;++r)o[r]=arguments[r+2]
12334
12335
  if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
12335
12336
  for(r=0,n=(i=this._[e]).length;r<n;++r)i[r].value.apply(t,o)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
12336
12337
  for(var i=this._[e],o=0,r=i.length;o<r;++o)i[o].value.apply(t,n)}}
12337
- var pz="http://www.w3.org/1999/xhtml",fz={svg:"http://www.w3.org/2000/svg",xhtml:pz,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
12338
- function mz(e){var t=e+="",n=t.indexOf(":")
12339
- return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),fz.hasOwnProperty(t)?{space:fz[t],local:e}:e}function gz(e){return function(){var t=this.ownerDocument,n=this.namespaceURI
12340
- return n===pz&&t.documentElement.namespaceURI===pz?t.createElement(e):t.createElementNS(n,e)}}function vz(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function bz(e){var t=mz(e)
12341
- return(t.local?vz:gz)(t)}function wz(){}function yz(e){return null==e?wz:function(){return this.querySelector(e)}}function xz(){return[]}function kz(e){return null==e?xz:function(){return this.querySelectorAll(e)}}function Cz(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t)
12342
- var t}}function Sz(e){return function(){return this.matches(e)}}function $z(e){return function(t){return t.matches(e)}}var Mz=Array.prototype.find
12343
- function _z(){return this.firstElementChild}var Ez=Array.prototype.filter
12344
- function Iz(){return Array.from(this.children)}function Az(e){return new Array(e.length)}function Oz(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Tz(e,t,n,i,o,r){for(var s,a=0,l=t.length,c=r.length;a<c;++a)(s=t[a])?(s.__data__=r[a],i[a]=s):n[a]=new Oz(e,r[a])
12345
- for(;a<l;++a)(s=t[a])&&(o[a]=s)}function Rz(e,t,n,i,o,r,s){var a,l,c,d=new Map,h=t.length,u=r.length,p=new Array(h)
12338
+ var fz="http://www.w3.org/1999/xhtml",mz={svg:"http://www.w3.org/2000/svg",xhtml:fz,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
12339
+ function gz(e){var t=e+="",n=t.indexOf(":")
12340
+ return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),mz.hasOwnProperty(t)?{space:mz[t],local:e}:e}function vz(e){return function(){var t=this.ownerDocument,n=this.namespaceURI
12341
+ return n===fz&&t.documentElement.namespaceURI===fz?t.createElement(e):t.createElementNS(n,e)}}function bz(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function wz(e){var t=gz(e)
12342
+ return(t.local?bz:vz)(t)}function yz(){}function xz(e){return null==e?yz:function(){return this.querySelector(e)}}function kz(){return[]}function Cz(e){return null==e?kz:function(){return this.querySelectorAll(e)}}function Sz(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t)
12343
+ var t}}function $z(e){return function(){return this.matches(e)}}function Mz(e){return function(t){return t.matches(e)}}var _z=Array.prototype.find
12344
+ function Ez(){return this.firstElementChild}var Iz=Array.prototype.filter
12345
+ function Az(){return Array.from(this.children)}function Oz(e){return new Array(e.length)}function Tz(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Rz(e,t,n,i,o,r){for(var s,a=0,l=t.length,c=r.length;a<c;++a)(s=t[a])?(s.__data__=r[a],i[a]=s):n[a]=new Tz(e,r[a])
12346
+ for(;a<l;++a)(s=t[a])&&(o[a]=s)}function Dz(e,t,n,i,o,r,s){var a,l,c,d=new Map,h=t.length,u=r.length,p=new Array(h)
12346
12347
  for(a=0;a<h;++a)(l=t[a])&&(p[a]=c=s.call(l,l.__data__,a,t)+"",d.has(c)?o[a]=l:d.set(c,l))
12347
- for(a=0;a<u;++a)c=s.call(e,r[a],a,r)+"",(l=d.get(c))?(i[a]=l,l.__data__=r[a],d.delete(c)):n[a]=new Oz(e,r[a])
12348
- for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(o[a]=l)}function Dz(e){return e.__data__}function Nz(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function Pz(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function zz(e){return function(){this.removeAttribute(e)}}function Lz(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Fz(e,t){return function(){this.setAttribute(e,t)}}function Vz(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Hz(e,t){return function(){var n=t.apply(this,arguments)
12349
- null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Bz(e,t){return function(){var n=t.apply(this,arguments)
12350
- null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function qz(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function jz(e){return function(){this.style.removeProperty(e)}}function Uz(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Wz(e,t,n){return function(){var i=t.apply(this,arguments)
12351
- null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function Zz(e,t){return e.style.getPropertyValue(t)||qz(e).getComputedStyle(e,null).getPropertyValue(t)}function Gz(e){return function(){delete this[e]}}function Kz(e,t){return function(){this[e]=t}}function Jz(e,t){return function(){var n=t.apply(this,arguments)
12352
- null==n?delete this[e]:this[e]=n}}function Xz(e){return e.trim().split(/^|\s+/)}function Yz(e){return e.classList||new Qz(e)}function Qz(e){this._node=e,this._names=Xz(e.getAttribute("class")||"")}function eL(e,t){for(var n=Yz(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function tL(e,t){for(var n=Yz(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function nL(e){return function(){eL(this,e)}}function iL(e){return function(){tL(this,e)}}function oL(e,t){return function(){(t.apply(this,arguments)?eL:tL)(this,e)}}function rL(){this.textContent=""}function sL(e){return function(){this.textContent=e}}function aL(e){return function(){var t=e.apply(this,arguments)
12353
- this.textContent=null==t?"":t}}function lL(){this.innerHTML=""}function cL(e){return function(){this.innerHTML=e}}function dL(e){return function(){var t=e.apply(this,arguments)
12354
- this.innerHTML=null==t?"":t}}function hL(){this.nextSibling&&this.parentNode.appendChild(this)}function uL(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function pL(){return null}function fL(){var e=this.parentNode
12355
- e&&e.removeChild(this)}function mL(){var e=this.cloneNode(!1),t=this.parentNode
12356
- return t?t.insertBefore(e,this.nextSibling):e}function gL(){var e=this.cloneNode(!0),t=this.parentNode
12357
- return t?t.insertBefore(e,this.nextSibling):e}function vL(e){return function(){var t=this.__on
12358
- if(t){for(var n,i=0,o=-1,r=t.length;i<r;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function bL(e,t,n){return function(){var i,o=this.__on,r=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
12348
+ for(a=0;a<u;++a)c=s.call(e,r[a],a,r)+"",(l=d.get(c))?(i[a]=l,l.__data__=r[a],d.delete(c)):n[a]=new Tz(e,r[a])
12349
+ for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(o[a]=l)}function Nz(e){return e.__data__}function Pz(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function zz(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Lz(e){return function(){this.removeAttribute(e)}}function Fz(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Vz(e,t){return function(){this.setAttribute(e,t)}}function Hz(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Bz(e,t){return function(){var n=t.apply(this,arguments)
12350
+ null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function qz(e,t){return function(){var n=t.apply(this,arguments)
12351
+ null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function jz(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Uz(e){return function(){this.style.removeProperty(e)}}function Wz(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Zz(e,t,n){return function(){var i=t.apply(this,arguments)
12352
+ null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function Gz(e,t){return e.style.getPropertyValue(t)||jz(e).getComputedStyle(e,null).getPropertyValue(t)}function Kz(e){return function(){delete this[e]}}function Jz(e,t){return function(){this[e]=t}}function Xz(e,t){return function(){var n=t.apply(this,arguments)
12353
+ null==n?delete this[e]:this[e]=n}}function Yz(e){return e.trim().split(/^|\s+/)}function Qz(e){return e.classList||new eL(e)}function eL(e){this._node=e,this._names=Yz(e.getAttribute("class")||"")}function tL(e,t){for(var n=Qz(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function nL(e,t){for(var n=Qz(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function iL(e){return function(){tL(this,e)}}function oL(e){return function(){nL(this,e)}}function rL(e,t){return function(){(t.apply(this,arguments)?tL:nL)(this,e)}}function sL(){this.textContent=""}function aL(e){return function(){this.textContent=e}}function lL(e){return function(){var t=e.apply(this,arguments)
12354
+ this.textContent=null==t?"":t}}function cL(){this.innerHTML=""}function dL(e){return function(){this.innerHTML=e}}function hL(e){return function(){var t=e.apply(this,arguments)
12355
+ this.innerHTML=null==t?"":t}}function uL(){this.nextSibling&&this.parentNode.appendChild(this)}function pL(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function fL(){return null}function mL(){var e=this.parentNode
12356
+ e&&e.removeChild(this)}function gL(){var e=this.cloneNode(!1),t=this.parentNode
12357
+ return t?t.insertBefore(e,this.nextSibling):e}function vL(){var e=this.cloneNode(!0),t=this.parentNode
12358
+ return t?t.insertBefore(e,this.nextSibling):e}function bL(e){return function(){var t=this.__on
12359
+ if(t){for(var n,i=0,o=-1,r=t.length;i<r;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function wL(e,t,n){return function(){var i,o=this.__on,r=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
12359
12360
  if(o)for(var s=0,a=o.length;s<a;++s)if((i=o[s]).type===e.type&&i.name===e.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=r,i.options=n),void(i.value=t)
12360
- this.addEventListener(e.type,r,n),i={type:e.type,name:e.name,value:t,listener:r,options:n},o?o.push(i):this.__on=[i]}}function wL(e,t,n){var i=qz(e),o=i.CustomEvent
12361
- "function"==typeof o?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function yL(e,t){return function(){return wL(this,e,t)}}function xL(e,t){return function(){return wL(this,e,t.apply(this,arguments))}}Oz.prototype={constructor:Oz,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},Qz.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e)
12361
+ this.addEventListener(e.type,r,n),i={type:e.type,name:e.name,value:t,listener:r,options:n},o?o.push(i):this.__on=[i]}}function yL(e,t,n){var i=jz(e),o=i.CustomEvent
12362
+ "function"==typeof o?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function xL(e,t){return function(){return yL(this,e,t)}}function kL(e,t){return function(){return yL(this,e,t.apply(this,arguments))}}Tz.prototype={constructor:Tz,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},eL.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e)
12362
12363
  t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}}
12363
- var kL=[null]
12364
- function CL(e,t){this._groups=e,this._parents=t}function SL(){return new CL([[document.documentElement]],kL)}function $L(e){return"string"==typeof e?new CL([[document.querySelector(e)]],[document.documentElement]):new CL([[e]],kL)}function ML(e,t){if(e=function(e){let t
12364
+ var CL=[null]
12365
+ function SL(e,t){this._groups=e,this._parents=t}function $L(){return new SL([[document.documentElement]],CL)}function ML(e){return"string"==typeof e?new SL([[document.querySelector(e)]],[document.documentElement]):new SL([[e]],CL)}function _L(e,t){if(e=function(e){let t
12365
12366
  for(;t=e.sourceEvent;)e=t
12366
12367
  return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t
12367
12368
  if(n.createSVGPoint){var i=n.createSVGPoint()
12368
12369
  return i.x=e.clientX,i.y=e.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect()
12369
- return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}CL.prototype=SL.prototype={constructor:CL,select:function(e){"function"!=typeof e&&(e=yz(e))
12370
+ return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}SL.prototype=$L.prototype={constructor:SL,select:function(e){"function"!=typeof e&&(e=xz(e))
12370
12371
  for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var r,s,a=t[o],l=a.length,c=i[o]=new Array(l),d=0;d<l;++d)(r=a[d])&&(s=e.call(r,r.__data__,d,a))&&("__data__"in r&&(s.__data__=r.__data__),c[d]=s)
12371
- return new CL(i,this._parents)},selectAll:function(e){e="function"==typeof e?Cz(e):kz(e)
12372
+ return new SL(i,this._parents)},selectAll:function(e){e="function"==typeof e?Sz(e):Cz(e)
12372
12373
  for(var t=this._groups,n=t.length,i=[],o=[],r=0;r<n;++r)for(var s,a=t[r],l=a.length,c=0;c<l;++c)(s=a[c])&&(i.push(e.call(s,s.__data__,c,a)),o.push(s))
12373
- return new CL(i,o)},selectChild:function(e){return this.select(null==e?_z:function(e){return function(){return Mz.call(this.children,e)}}("function"==typeof e?e:$z(e)))},selectChildren:function(e){return this.selectAll(null==e?Iz:function(e){return function(){return Ez.call(this.children,e)}}("function"==typeof e?e:$z(e)))},filter:function(e){"function"!=typeof e&&(e=Sz(e))
12374
+ return new SL(i,o)},selectChild:function(e){return this.select(null==e?Ez:function(e){return function(){return _z.call(this.children,e)}}("function"==typeof e?e:Mz(e)))},selectChildren:function(e){return this.selectAll(null==e?Az:function(e){return function(){return Iz.call(this.children,e)}}("function"==typeof e?e:Mz(e)))},filter:function(e){"function"!=typeof e&&(e=$z(e))
12374
12375
  for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var r,s=t[o],a=s.length,l=i[o]=[],c=0;c<a;++c)(r=s[c])&&e.call(r,r.__data__,c,s)&&l.push(r)
12375
- return new CL(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,Dz)
12376
- var n,i=t?Rz:Tz,o=this._parents,r=this._groups
12376
+ return new SL(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,Nz)
12377
+ var n,i=t?Dz:Rz,o=this._parents,r=this._groups
12377
12378
  "function"!=typeof e&&(n=e,e=function(){return n})
12378
- for(var s=r.length,a=new Array(s),l=new Array(s),c=new Array(s),d=0;d<s;++d){var h=o[d],u=r[d],p=u.length,f=Nz(e.call(h,h&&h.__data__,d,o)),m=f.length,g=l[d]=new Array(m),v=a[d]=new Array(m)
12379
+ for(var s=r.length,a=new Array(s),l=new Array(s),c=new Array(s),d=0;d<s;++d){var h=o[d],u=r[d],p=u.length,f=Pz(e.call(h,h&&h.__data__,d,o)),m=f.length,g=l[d]=new Array(m),v=a[d]=new Array(m)
12379
12380
  i(h,u,g,v,c[d]=new Array(p),f,t)
12380
- for(var b,w,y=0,x=0;y<m;++y)if(b=g[y]){for(y>=x&&(x=y+1);!(w=v[x])&&++x<m;);b._next=w||null}}return(a=new CL(a,o))._enter=l,a._exit=c,a},enter:function(){return new CL(this._enter||this._groups.map(Az),this._parents)},exit:function(){return new CL(this._exit||this._groups.map(Az),this._parents)},join:function(e,t,n){var i=this.enter(),o=this,r=this.exit()
12381
+ for(var b,w,y=0,x=0;y<m;++y)if(b=g[y]){for(y>=x&&(x=y+1);!(w=v[x])&&++x<m;);b._next=w||null}}return(a=new SL(a,o))._enter=l,a._exit=c,a},enter:function(){return new SL(this._enter||this._groups.map(Oz),this._parents)},exit:function(){return new SL(this._exit||this._groups.map(Oz),this._parents)},join:function(e,t,n){var i=this.enter(),o=this,r=this.exit()
12381
12382
  return"function"==typeof e?(i=e(i))&&(i=i.selection()):i=i.append(e+""),null!=t&&(o=t(o))&&(o=o.selection()),null==n?r.remove():n(r),i&&o?i.merge(o).order():o},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,o=n.length,r=i.length,s=Math.min(o,r),a=new Array(o),l=0;l<s;++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)
12382
12383
  for(;l<o;++l)a[l]=n[l]
12383
- return new CL(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i,o=e[t],r=o.length-1,s=o[r];--r>=0;)(i=o[r])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i)
12384
- return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Pz)
12384
+ return new SL(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i,o=e[t],r=o.length-1,s=o[r];--r>=0;)(i=o[r])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i)
12385
+ return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=zz)
12385
12386
  for(var n=this._groups,i=n.length,o=new Array(i),r=0;r<i;++r){for(var s,a=n[r],l=a.length,c=o[r]=new Array(l),d=0;d<l;++d)(s=a[d])&&(c[d]=s)
12386
- c.sort(t)}return new CL(o,this._parents).order()},call:function(){var e=arguments[0]
12387
+ c.sort(t)}return new SL(o,this._parents).order()},call:function(){var e=arguments[0]
12387
12388
  return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,r=i.length;o<r;++o){var s=i[o]
12388
12389
  if(s)return s}return null},size:function(){let e=0
12389
12390
  for(const t of this)++e
12390
12391
  return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var o,r=t[n],s=0,a=r.length;s<a;++s)(o=r[s])&&e.call(o,o.__data__,s,r)
12391
- return this},attr:function(e,t){var n=mz(e)
12392
+ return this},attr:function(e,t){var n=gz(e)
12392
12393
  if(arguments.length<2){var i=this.node()
12393
- return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?Lz:zz:"function"==typeof t?n.local?Bz:Hz:n.local?Vz:Fz)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?jz:"function"==typeof t?Wz:Uz)(e,t,null==n?"":n)):Zz(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Gz:"function"==typeof t?Jz:Kz)(e,t)):this.node()[e]},classed:function(e,t){var n=Xz(e+"")
12394
- if(arguments.length<2){for(var i=Yz(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1
12395
- return!0}return this.each(("function"==typeof t?oL:t?nL:iL)(n,t))},text:function(e){return arguments.length?this.each(null==e?rL:("function"==typeof e?aL:sL)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?lL:("function"==typeof e?dL:cL)(e)):this.node().innerHTML},raise:function(){return this.each(hL)},lower:function(){return this.each(uL)},append:function(e){var t="function"==typeof e?e:bz(e)
12396
- return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:bz(e),i=null==t?pL:"function"==typeof t?t:yz(t)
12397
- return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(fL)},clone:function(e){return this.select(e?gL:mL)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var i,o,r=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
12394
+ return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?Fz:Lz:"function"==typeof t?n.local?qz:Bz:n.local?Hz:Vz)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?Uz:"function"==typeof t?Zz:Wz)(e,t,null==n?"":n)):Gz(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Kz:"function"==typeof t?Xz:Jz)(e,t)):this.node()[e]},classed:function(e,t){var n=Yz(e+"")
12395
+ if(arguments.length<2){for(var i=Qz(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1
12396
+ return!0}return this.each(("function"==typeof t?rL:t?iL:oL)(n,t))},text:function(e){return arguments.length?this.each(null==e?sL:("function"==typeof e?lL:aL)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?cL:("function"==typeof e?hL:dL)(e)):this.node().innerHTML},raise:function(){return this.each(uL)},lower:function(){return this.each(pL)},append:function(e){var t="function"==typeof e?e:wz(e)
12397
+ return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:wz(e),i=null==t?fL:"function"==typeof t?t:xz(t)
12398
+ return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(mL)},clone:function(e){return this.select(e?vL:gL)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var i,o,r=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
12398
12399
  return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),s=r.length
12399
- if(!(arguments.length<2)){for(a=t?bL:vL,i=0;i<s;++i)this.each(a(r[i],t,n))
12400
+ if(!(arguments.length<2)){for(a=t?wL:bL,i=0;i<s;++i)this.each(a(r[i],t,n))
12400
12401
  return this}var a=this.node().__on
12401
- if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<s;++i)if((o=r[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?xL:yL)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i,o=e[t],r=0,s=o.length;r<s;++r)(i=o[r])&&(yield i)}}
12402
- const _L={capture:!0,passive:!1}
12403
- function EL(e){e.preventDefault(),e.stopImmediatePropagation()}function IL(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function AL(e,t){var n=Object.create(e.prototype)
12402
+ if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<s;++i)if((o=r[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?kL:xL)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i,o=e[t],r=0,s=o.length;r<s;++r)(i=o[r])&&(yield i)}}
12403
+ const EL={capture:!0,passive:!1}
12404
+ function IL(e){e.preventDefault(),e.stopImmediatePropagation()}function AL(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function OL(e,t){var n=Object.create(e.prototype)
12404
12405
  for(var i in t)n[i]=t[i]
12405
- return n}function OL(){}var TL=.7,RL=1/TL,DL="\\s*([+-]?\\d+)\\s*",NL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",PL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zL=/^#([0-9a-f]{3,8})$/,LL=new RegExp(`^rgb\\(${DL},${DL},${DL}\\)$`),FL=new RegExp(`^rgb\\(${PL},${PL},${PL}\\)$`),VL=new RegExp(`^rgba\\(${DL},${DL},${DL},${NL}\\)$`),HL=new RegExp(`^rgba\\(${PL},${PL},${PL},${NL}\\)$`),BL=new RegExp(`^hsl\\(${NL},${PL},${PL}\\)$`),qL=new RegExp(`^hsla\\(${NL},${PL},${PL},${NL}\\)$`),jL={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}
12406
- function UL(){return this.rgb().formatHex()}function WL(){return this.rgb().formatRgb()}function ZL(e){var t,n
12407
- return e=(e+"").trim().toLowerCase(),(t=zL.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?GL(t):3===n?new XL(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?KL(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?KL(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=LL.exec(e))?new XL(t[1],t[2],t[3],1):(t=FL.exec(e))?new XL(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=VL.exec(e))?KL(t[1],t[2],t[3],t[4]):(t=HL.exec(e))?KL(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=BL.exec(e))?iF(t[1],t[2]/100,t[3]/100,1):(t=qL.exec(e))?iF(t[1],t[2]/100,t[3]/100,t[4]):jL.hasOwnProperty(e)?GL(jL[e]):"transparent"===e?new XL(NaN,NaN,NaN,0):null}function GL(e){return new XL(e>>16&255,e>>8&255,255&e,1)}function KL(e,t,n,i){return i<=0&&(e=t=n=NaN),new XL(e,t,n,i)}function JL(e,t,n,i){return 1===arguments.length?((o=e)instanceof OL||(o=ZL(o)),o?new XL((o=o.rgb()).r,o.g,o.b,o.opacity):new XL):new XL(e,t,n,null==i?1:i)
12408
- var o}function XL(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function YL(){return`#${nF(this.r)}${nF(this.g)}${nF(this.b)}`}function QL(){const e=eF(this.opacity)
12409
- return`${1===e?"rgb(":"rgba("}${tF(this.r)}, ${tF(this.g)}, ${tF(this.b)}${1===e?")":`, ${e})`}`}function eF(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tF(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function nF(e){return((e=tF(e))<16?"0":"")+e.toString(16)}function iF(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new rF(e,t,n,i)}function oF(e){if(e instanceof rF)return new rF(e.h,e.s,e.l,e.opacity)
12410
- if(e instanceof OL||(e=ZL(e)),!e)return new rF
12411
- if(e instanceof rF)return e
12406
+ return n}function TL(){}var RL=.7,DL=1/RL,NL="\\s*([+-]?\\d+)\\s*",PL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",zL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",LL=/^#([0-9a-f]{3,8})$/,FL=new RegExp(`^rgb\\(${NL},${NL},${NL}\\)$`),VL=new RegExp(`^rgb\\(${zL},${zL},${zL}\\)$`),HL=new RegExp(`^rgba\\(${NL},${NL},${NL},${PL}\\)$`),BL=new RegExp(`^rgba\\(${zL},${zL},${zL},${PL}\\)$`),qL=new RegExp(`^hsl\\(${PL},${zL},${zL}\\)$`),jL=new RegExp(`^hsla\\(${PL},${zL},${zL},${PL}\\)$`),UL={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}
12407
+ function WL(){return this.rgb().formatHex()}function ZL(){return this.rgb().formatRgb()}function GL(e){var t,n
12408
+ return e=(e+"").trim().toLowerCase(),(t=LL.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?KL(t):3===n?new YL(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?JL(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?JL(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=FL.exec(e))?new YL(t[1],t[2],t[3],1):(t=VL.exec(e))?new YL(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=HL.exec(e))?JL(t[1],t[2],t[3],t[4]):(t=BL.exec(e))?JL(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=qL.exec(e))?oF(t[1],t[2]/100,t[3]/100,1):(t=jL.exec(e))?oF(t[1],t[2]/100,t[3]/100,t[4]):UL.hasOwnProperty(e)?KL(UL[e]):"transparent"===e?new YL(NaN,NaN,NaN,0):null}function KL(e){return new YL(e>>16&255,e>>8&255,255&e,1)}function JL(e,t,n,i){return i<=0&&(e=t=n=NaN),new YL(e,t,n,i)}function XL(e,t,n,i){return 1===arguments.length?((o=e)instanceof TL||(o=GL(o)),o?new YL((o=o.rgb()).r,o.g,o.b,o.opacity):new YL):new YL(e,t,n,null==i?1:i)
12409
+ var o}function YL(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function QL(){return`#${iF(this.r)}${iF(this.g)}${iF(this.b)}`}function eF(){const e=tF(this.opacity)
12410
+ return`${1===e?"rgb(":"rgba("}${nF(this.r)}, ${nF(this.g)}, ${nF(this.b)}${1===e?")":`, ${e})`}`}function tF(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function nF(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function iF(e){return((e=nF(e))<16?"0":"")+e.toString(16)}function oF(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new sF(e,t,n,i)}function rF(e){if(e instanceof sF)return new sF(e.h,e.s,e.l,e.opacity)
12411
+ if(e instanceof TL||(e=GL(e)),!e)return new sF
12412
+ if(e instanceof sF)return e
12412
12413
  var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),r=Math.max(t,n,i),s=NaN,a=r-o,l=(r+o)/2
12413
- return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new rF(s,a,l,e.opacity)}function rF(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function sF(e){return(e=(e||0)%360)<0?e+360:e}function aF(e){return Math.max(0,Math.min(1,e||0))}function lF(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}IL(OL,ZL,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:UL,formatHex:UL,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return oF(this).formatHsl()},formatRgb:WL,toString:WL}),IL(XL,JL,AL(OL,{brighter(e){return e=null==e?RL:Math.pow(RL,e),new XL(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?TL:Math.pow(TL,e),new XL(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new XL(tF(this.r),tF(this.g),tF(this.b),eF(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:YL,formatHex:YL,formatHex8:function(){return`#${nF(this.r)}${nF(this.g)}${nF(this.b)}${nF(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:QL,toString:QL})),IL(rF,(function(e,t,n,i){return 1===arguments.length?oF(e):new rF(e,t,n,null==i?1:i)}),AL(OL,{brighter(e){return e=null==e?RL:Math.pow(RL,e),new rF(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?TL:Math.pow(TL,e),new rF(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i
12414
- return new XL(lF(e>=240?e-240:e+120,o,i),lF(e,o,i),lF(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new rF(sF(this.h),aF(this.s),aF(this.l),eF(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=eF(this.opacity)
12415
- return`${1===e?"hsl(":"hsla("}${sF(this.h)}, ${100*aF(this.s)}%, ${100*aF(this.l)}%${1===e?")":`, ${e})`}`}}))
12416
- var cF=e=>()=>e
12417
- function dF(e){return 1==(e=+e)?hF:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}(t,n,e):cF(isNaN(t)?n:t)}}function hF(e,t){var n=t-e
12418
- return n?function(e,t){return function(n){return e+n*t}}(e,n):cF(isNaN(e)?t:e)}var uF=function e(t){var n=dF(t)
12419
- function i(e,t){var i=n((e=JL(e)).r,(t=JL(t)).r),o=n(e.g,t.g),r=n(e.b,t.b),s=hF(e.opacity,t.opacity)
12414
+ return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new sF(s,a,l,e.opacity)}function sF(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function aF(e){return(e=(e||0)%360)<0?e+360:e}function lF(e){return Math.max(0,Math.min(1,e||0))}function cF(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}AL(TL,GL,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:WL,formatHex:WL,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return rF(this).formatHsl()},formatRgb:ZL,toString:ZL}),AL(YL,XL,OL(TL,{brighter(e){return e=null==e?DL:Math.pow(DL,e),new YL(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?RL:Math.pow(RL,e),new YL(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new YL(nF(this.r),nF(this.g),nF(this.b),tF(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:QL,formatHex:QL,formatHex8:function(){return`#${iF(this.r)}${iF(this.g)}${iF(this.b)}${iF(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:eF,toString:eF})),AL(sF,(function(e,t,n,i){return 1===arguments.length?rF(e):new sF(e,t,n,null==i?1:i)}),OL(TL,{brighter(e){return e=null==e?DL:Math.pow(DL,e),new sF(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?RL:Math.pow(RL,e),new sF(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i
12415
+ return new YL(cF(e>=240?e-240:e+120,o,i),cF(e,o,i),cF(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new sF(aF(this.h),lF(this.s),lF(this.l),tF(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=tF(this.opacity)
12416
+ return`${1===e?"hsl(":"hsla("}${aF(this.h)}, ${100*lF(this.s)}%, ${100*lF(this.l)}%${1===e?")":`, ${e})`}`}}))
12417
+ var dF=e=>()=>e
12418
+ function hF(e){return 1==(e=+e)?uF:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}(t,n,e):dF(isNaN(t)?n:t)}}function uF(e,t){var n=t-e
12419
+ return n?function(e,t){return function(n){return e+n*t}}(e,n):dF(isNaN(e)?t:e)}var pF=function e(t){var n=hF(t)
12420
+ function i(e,t){var i=n((e=XL(e)).r,(t=XL(t)).r),o=n(e.g,t.g),r=n(e.b,t.b),s=uF(e.opacity,t.opacity)
12420
12421
  return function(t){return e.r=i(t),e.g=o(t),e.b=r(t),e.opacity=s(t),e+""}}return i.gamma=e,i}(1)
12421
- function pF(e,t){t||(t=[])
12422
+ function fF(e,t){t||(t=[])
12422
12423
  var n,i=e?Math.min(t.length,e.length):0,o=t.slice()
12423
12424
  return function(r){for(n=0;n<i;++n)o[n]=e[n]*(1-r)+t[n]*r
12424
- return o}}function fF(e,t){var n,i=t?t.length:0,o=e?Math.min(i,e.length):0,r=new Array(o),s=new Array(i)
12425
- for(n=0;n<o;++n)r[n]=xF(e[n],t[n])
12425
+ return o}}function mF(e,t){var n,i=t?t.length:0,o=e?Math.min(i,e.length):0,r=new Array(o),s=new Array(i)
12426
+ for(n=0;n<o;++n)r[n]=kF(e[n],t[n])
12426
12427
  for(;n<i;++n)s[n]=t[n]
12427
12428
  return function(e){for(n=0;n<o;++n)s[n]=r[n](e)
12428
- return s}}function mF(e,t){var n=new Date
12429
- return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function gF(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function vF(e,t){var n,i={},o={}
12430
- for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=xF(e[n],t[n]):o[n]=t[n]
12429
+ return s}}function gF(e,t){var n=new Date
12430
+ return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function vF(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function bF(e,t){var n,i={},o={}
12431
+ for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=kF(e[n],t[n]):o[n]=t[n]
12431
12432
  return function(e){for(n in i)o[n]=i[n](e)
12432
- return o}}var bF=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wF=new RegExp(bF.source,"g")
12433
- function yF(e,t){var n,i,o,r=bF.lastIndex=wF.lastIndex=0,s=-1,a=[],l=[]
12434
- for(e+="",t+="";(n=bF.exec(e))&&(i=wF.exec(t));)(o=i.index)>r&&(o=t.slice(r,o),a[s]?a[s]+=o:a[++s]=o),(n=n[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:gF(n,i)})),r=wF.lastIndex
12433
+ return o}}var wF=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yF=new RegExp(wF.source,"g")
12434
+ function xF(e,t){var n,i,o,r=wF.lastIndex=yF.lastIndex=0,s=-1,a=[],l=[]
12435
+ for(e+="",t+="";(n=wF.exec(e))&&(i=yF.exec(t));)(o=i.index)>r&&(o=t.slice(r,o),a[s]?a[s]+=o:a[++s]=o),(n=n[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:vF(n,i)})),r=yF.lastIndex
12435
12436
  return r<t.length&&(o=t.slice(r),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,i=0;i<t;++i)a[(n=l[i]).i]=n.x(e)
12436
- return a.join("")})}function xF(e,t){var n,i,o=typeof t
12437
- return null==t||"boolean"===o?cF(t):("number"===o?gF:"string"===o?(n=ZL(t))?(t=n,uF):yF:t instanceof ZL?uF:t instanceof Date?mF:(i=t,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(t)?fF:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?vF:gF:pF))(e,t)}function kF(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var CF,SF=180/Math.PI,$F={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
12438
- function MF(e,t,n,i,o,r){var s,a,l
12439
- return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),e*i<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:o,translateY:r,rotate:Math.atan2(t,e)*SF,skewX:Math.atan(l)*SF,scaleX:s,scaleY:a}}function _F(e,t,n,i){function o(e){return e.length?e.pop()+" ":""}return function(r,s){var a=[],l=[]
12437
+ return a.join("")})}function kF(e,t){var n,i,o=typeof t
12438
+ return null==t||"boolean"===o?dF(t):("number"===o?vF:"string"===o?(n=GL(t))?(t=n,pF):xF:t instanceof GL?pF:t instanceof Date?gF:(i=t,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(t)?mF:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?bF:vF:fF))(e,t)}function CF(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var SF,$F=180/Math.PI,MF={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
12439
+ function _F(e,t,n,i,o,r){var s,a,l
12440
+ return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),e*i<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:o,translateY:r,rotate:Math.atan2(t,e)*$F,skewX:Math.atan(l)*$F,scaleX:s,scaleY:a}}function EF(e,t,n,i){function o(e){return e.length?e.pop()+" ":""}return function(r,s){var a=[],l=[]
12440
12441
  return r=e(r),s=e(s),function(e,i,o,r,s,a){if(e!==o||i!==r){var l=s.push("translate(",null,t,null,n)
12441
- a.push({i:l-4,x:gF(e,o)},{i:l-2,x:gF(i,r)})}else(o||r)&&s.push("translate("+o+t+r+n)}(r.translateX,r.translateY,s.translateX,s.translateY,a,l),function(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(o(n)+"rotate(",null,i)-2,x:gF(e,t)})):t&&n.push(o(n)+"rotate("+t+i)}(r.rotate,s.rotate,a,l),function(e,t,n,r){e!==t?r.push({i:n.push(o(n)+"skewX(",null,i)-2,x:gF(e,t)}):t&&n.push(o(n)+"skewX("+t+i)}(r.skewX,s.skewX,a,l),function(e,t,n,i,r,s){if(e!==n||t!==i){var a=r.push(o(r)+"scale(",null,",",null,")")
12442
- s.push({i:a-4,x:gF(e,n)},{i:a-2,x:gF(t,i)})}else 1===n&&1===i||r.push(o(r)+"scale("+n+","+i+")")}(r.scaleX,r.scaleY,s.scaleX,s.scaleY,a,l),r=s=null,function(e){for(var t,n=-1,i=l.length;++n<i;)a[(t=l[n]).i]=t.x(e)
12443
- return a.join("")}}}var EF=_F((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
12444
- return t.isIdentity?$F:MF(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),IF=_F((function(e){return null==e?$F:(CF||(CF=document.createElementNS("http://www.w3.org/2000/svg","g")),CF.setAttribute("transform",e),(e=CF.transform.baseVal.consolidate())?MF((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):$F)}),", ",")",")")
12445
- function AF(e){return((e=Math.exp(e))+1/e)/2}var OF,TF,RF=function e(t,n,i){function o(e,o){var r,s,a=e[0],l=e[1],c=e[2],d=o[0],h=o[1],u=o[2],p=d-a,f=h-l,m=p*p+f*f
12442
+ a.push({i:l-4,x:vF(e,o)},{i:l-2,x:vF(i,r)})}else(o||r)&&s.push("translate("+o+t+r+n)}(r.translateX,r.translateY,s.translateX,s.translateY,a,l),function(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(o(n)+"rotate(",null,i)-2,x:vF(e,t)})):t&&n.push(o(n)+"rotate("+t+i)}(r.rotate,s.rotate,a,l),function(e,t,n,r){e!==t?r.push({i:n.push(o(n)+"skewX(",null,i)-2,x:vF(e,t)}):t&&n.push(o(n)+"skewX("+t+i)}(r.skewX,s.skewX,a,l),function(e,t,n,i,r,s){if(e!==n||t!==i){var a=r.push(o(r)+"scale(",null,",",null,")")
12443
+ s.push({i:a-4,x:vF(e,n)},{i:a-2,x:vF(t,i)})}else 1===n&&1===i||r.push(o(r)+"scale("+n+","+i+")")}(r.scaleX,r.scaleY,s.scaleX,s.scaleY,a,l),r=s=null,function(e){for(var t,n=-1,i=l.length;++n<i;)a[(t=l[n]).i]=t.x(e)
12444
+ return a.join("")}}}var IF=EF((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
12445
+ return t.isIdentity?MF:_F(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),AF=EF((function(e){return null==e?MF:(SF||(SF=document.createElementNS("http://www.w3.org/2000/svg","g")),SF.setAttribute("transform",e),(e=SF.transform.baseVal.consolidate())?_F((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):MF)}),", ",")",")")
12446
+ function OF(e){return((e=Math.exp(e))+1/e)/2}var TF,RF,DF=function e(t,n,i){function o(e,o){var r,s,a=e[0],l=e[1],c=e[2],d=o[0],h=o[1],u=o[2],p=d-a,f=h-l,m=p*p+f*f
12446
12447
  if(m<1e-12)s=Math.log(u/c)/t,r=function(e){return[a+e*p,l+e*f,c*Math.exp(t*e*s)]}
12447
12448
  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),w=Math.log(Math.sqrt(v*v+1)-v),y=Math.log(Math.sqrt(b*b+1)-b)
12448
- s=(y-w)/t,r=function(e){var i,o=e*s,r=AF(w),d=c/(n*g)*(r*(i=t*o+w,((i=Math.exp(2*i))-1)/(i+1))-function(e){return((e=Math.exp(e))-1/e)/2}(w))
12449
- return[a+d*p,l+d*f,c*r/AF(t*o+w)]}}return r.duration=1e3*s*t/Math.SQRT2,r}return o.rho=function(t){var n=Math.max(.001,+t),i=n*n
12450
- return e(n,i,i*i)},o}(Math.SQRT2,2,4),DF=0,NF=0,PF=0,zF=1e3,LF=0,FF=0,VF=0,HF="object"==typeof performance&&performance.now?performance:Date,BF="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
12451
- function qF(){return FF||(BF(jF),FF=HF.now()+VF)}function jF(){FF=0}function UF(){this._call=this._time=this._next=null}function WF(e,t,n){var i=new UF
12452
- return i.restart(e,t,n),i}function ZF(){FF=(LF=HF.now())+VF,DF=NF=0
12453
- try{!function(){qF(),++DF
12454
- for(var e,t=OF;t;)(e=FF-t._time)>=0&&t._call.call(void 0,e),t=t._next;--DF}()}finally{DF=0,function(){var e,t,n=OF,i=1/0
12455
- for(;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:OF=t)
12456
- TF=e,KF(i)}(),FF=0}}function GF(){var e=HF.now(),t=e-LF
12457
- t>zF&&(VF-=t,LF=e)}function KF(e){DF||(NF&&(NF=clearTimeout(NF)),e-FF>24?(e<1/0&&(NF=setTimeout(ZF,e-HF.now()-VF)),PF&&(PF=clearInterval(PF))):(PF||(LF=HF.now(),PF=setInterval(GF,zF)),DF=1,BF(ZF)))}function JF(e,t,n){var i=new UF
12458
- return t=null==t?0:+t,i.restart((n=>{i.stop(),e(n+t)}),t,n),i}UF.prototype=WF.prototype={constructor:UF,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function")
12459
- n=(null==n?qF():+n)+(null==t?0:+t),this._next||TF===this||(TF?TF._next=this:OF=this,TF=this),this._call=e,this._time=n,KF()},stop:function(){this._call&&(this._call=null,this._time=1/0,KF())}}
12460
- var XF=cz("start","end","cancel","interrupt"),YF=[],QF=0,eV=1,tV=2,nV=3,iV=4,oV=5,rV=6
12461
- function sV(e,t,n,i,o,r){var s=e.__transition
12449
+ s=(y-w)/t,r=function(e){var i,o=e*s,r=OF(w),d=c/(n*g)*(r*(i=t*o+w,((i=Math.exp(2*i))-1)/(i+1))-function(e){return((e=Math.exp(e))-1/e)/2}(w))
12450
+ return[a+d*p,l+d*f,c*r/OF(t*o+w)]}}return r.duration=1e3*s*t/Math.SQRT2,r}return o.rho=function(t){var n=Math.max(.001,+t),i=n*n
12451
+ return e(n,i,i*i)},o}(Math.SQRT2,2,4),NF=0,PF=0,zF=0,LF=1e3,FF=0,VF=0,HF=0,BF="object"==typeof performance&&performance.now?performance:Date,qF="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
12452
+ function jF(){return VF||(qF(UF),VF=BF.now()+HF)}function UF(){VF=0}function WF(){this._call=this._time=this._next=null}function ZF(e,t,n){var i=new WF
12453
+ return i.restart(e,t,n),i}function GF(){VF=(FF=BF.now())+HF,NF=PF=0
12454
+ try{!function(){jF(),++NF
12455
+ for(var e,t=TF;t;)(e=VF-t._time)>=0&&t._call.call(void 0,e),t=t._next;--NF}()}finally{NF=0,function(){var e,t,n=TF,i=1/0
12456
+ for(;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:TF=t)
12457
+ RF=e,JF(i)}(),VF=0}}function KF(){var e=BF.now(),t=e-FF
12458
+ t>LF&&(HF-=t,FF=e)}function JF(e){NF||(PF&&(PF=clearTimeout(PF)),e-VF>24?(e<1/0&&(PF=setTimeout(GF,e-BF.now()-HF)),zF&&(zF=clearInterval(zF))):(zF||(FF=BF.now(),zF=setInterval(KF,LF)),NF=1,qF(GF)))}function XF(e,t,n){var i=new WF
12459
+ return t=null==t?0:+t,i.restart((n=>{i.stop(),e(n+t)}),t,n),i}WF.prototype=ZF.prototype={constructor:WF,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function")
12460
+ n=(null==n?jF():+n)+(null==t?0:+t),this._next||RF===this||(RF?RF._next=this:TF=this,RF=this),this._call=e,this._time=n,JF()},stop:function(){this._call&&(this._call=null,this._time=1/0,JF())}}
12461
+ var YF=dz("start","end","cancel","interrupt"),QF=[],eV=0,tV=1,nV=2,iV=3,oV=4,rV=5,sV=6
12462
+ function aV(e,t,n,i,o,r){var s=e.__transition
12462
12463
  if(s){if(n in s)return}else e.__transition={}
12463
12464
  !function(e,t,n){var i,o=e.__transition
12464
- function r(e){n.state=eV,n.timer.restart(s,n.delay,n.time),n.delay<=e&&s(e-n.delay)}function s(r){var c,d,h,u
12465
- if(n.state!==eV)return l()
12466
- for(c in o)if((u=o[c]).name===n.name){if(u.state===nV)return JF(s)
12467
- u.state===iV?(u.state=rV,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete o[c]):+c<t&&(u.state=rV,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete o[c])}if(JF((function(){n.state===nV&&(n.state=iV,n.timer.restart(a,n.delay,n.time),a(r))})),n.state=tV,n.on.call("start",e,e.__data__,n.index,n.group),n.state===tV){for(n.state=nV,i=new Array(h=n.tween.length),c=0,d=-1;c<h;++c)(u=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=u)
12468
- i.length=d+1}}function a(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=oV,1),r=-1,s=i.length;++r<s;)i[r].call(e,o)
12469
- n.state===oV&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var i in n.state=rV,n.timer.stop(),delete o[t],o)return
12470
- delete e.__transition}o[t]=n,n.timer=WF(r,0,n.time)}(e,n,{name:t,index:i,group:o,on:XF,tween:YF,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:QF})}function aV(e,t){var n=cV(e,t)
12471
- if(n.state>QF)throw new Error("too late; already scheduled")
12472
- return n}function lV(e,t){var n=cV(e,t)
12473
- if(n.state>nV)throw new Error("too late; already running")
12474
- return n}function cV(e,t){var n=e.__transition
12465
+ function r(e){n.state=tV,n.timer.restart(s,n.delay,n.time),n.delay<=e&&s(e-n.delay)}function s(r){var c,d,h,u
12466
+ if(n.state!==tV)return l()
12467
+ for(c in o)if((u=o[c]).name===n.name){if(u.state===iV)return XF(s)
12468
+ u.state===oV?(u.state=sV,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete o[c]):+c<t&&(u.state=sV,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete o[c])}if(XF((function(){n.state===iV&&(n.state=oV,n.timer.restart(a,n.delay,n.time),a(r))})),n.state=nV,n.on.call("start",e,e.__data__,n.index,n.group),n.state===nV){for(n.state=iV,i=new Array(h=n.tween.length),c=0,d=-1;c<h;++c)(u=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=u)
12469
+ i.length=d+1}}function a(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=rV,1),r=-1,s=i.length;++r<s;)i[r].call(e,o)
12470
+ n.state===rV&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var i in n.state=sV,n.timer.stop(),delete o[t],o)return
12471
+ delete e.__transition}o[t]=n,n.timer=ZF(r,0,n.time)}(e,n,{name:t,index:i,group:o,on:YF,tween:QF,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:eV})}function lV(e,t){var n=dV(e,t)
12472
+ if(n.state>eV)throw new Error("too late; already scheduled")
12473
+ return n}function cV(e,t){var n=dV(e,t)
12474
+ if(n.state>iV)throw new Error("too late; already running")
12475
+ return n}function dV(e,t){var n=e.__transition
12475
12476
  if(!n||!(n=n[t]))throw new Error("transition not found")
12476
- return n}function dV(e,t){var n,i,o,r=e.__transition,s=!0
12477
- if(r){for(o in t=null==t?null:t+"",r)(n=r[o]).name===t?(i=n.state>tV&&n.state<oV,n.state=rV,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]):s=!1
12478
- s&&delete e.__transition}}function hV(e,t){var n,i
12479
- return function(){var o=lV(this,e),r=o.tween
12477
+ return n}function hV(e,t){var n,i,o,r=e.__transition,s=!0
12478
+ if(r){for(o in t=null==t?null:t+"",r)(n=r[o]).name===t?(i=n.state>nV&&n.state<rV,n.state=sV,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]):s=!1
12479
+ s&&delete e.__transition}}function uV(e,t){var n,i
12480
+ return function(){var o=cV(this,e),r=o.tween
12480
12481
  if(r!==n)for(var s=0,a=(i=n=r).length;s<a;++s)if(i[s].name===t){(i=i.slice()).splice(s,1)
12481
- break}o.tween=i}}function uV(e,t,n){var i,o
12482
+ break}o.tween=i}}function pV(e,t,n){var i,o
12482
12483
  if("function"!=typeof n)throw new Error
12483
- return function(){var r=lV(this,e),s=r.tween
12484
+ return function(){var r=cV(this,e),s=r.tween
12484
12485
  if(s!==i){o=(i=s).slice()
12485
12486
  for(var a={name:t,value:n},l=0,c=o.length;l<c;++l)if(o[l].name===t){o[l]=a
12486
- break}l===c&&o.push(a)}r.tween=o}}function pV(e,t,n){var i=e._id
12487
- return e.each((function(){var e=lV(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return cV(e,i).value[t]}}function fV(e,t){var n
12488
- return("number"==typeof t?gF:t instanceof ZL?uF:(n=ZL(t))?(t=n,uF):yF)(e,t)}function mV(e){return function(){this.removeAttribute(e)}}function gV(e){return function(){this.removeAttributeNS(e.space,e.local)}}function vV(e,t,n){var i,o,r=n+""
12487
+ break}l===c&&o.push(a)}r.tween=o}}function fV(e,t,n){var i=e._id
12488
+ return e.each((function(){var e=cV(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return dV(e,i).value[t]}}function mV(e,t){var n
12489
+ return("number"==typeof t?vF:t instanceof GL?pF:(n=GL(t))?(t=n,pF):xF)(e,t)}function gV(e){return function(){this.removeAttribute(e)}}function vV(e){return function(){this.removeAttributeNS(e.space,e.local)}}function bV(e,t,n){var i,o,r=n+""
12489
12490
  return function(){var s=this.getAttribute(e)
12490
- return s===r?null:s===i?o:o=t(i=s,n)}}function bV(e,t,n){var i,o,r=n+""
12491
+ return s===r?null:s===i?o:o=t(i=s,n)}}function wV(e,t,n){var i,o,r=n+""
12491
12492
  return function(){var s=this.getAttributeNS(e.space,e.local)
12492
- return s===r?null:s===i?o:o=t(i=s,n)}}function wV(e,t,n){var i,o,r
12493
+ return s===r?null:s===i?o:o=t(i=s,n)}}function yV(e,t,n){var i,o,r
12493
12494
  return function(){var s,a,l=n(this)
12494
12495
  if(null!=l)return(s=this.getAttribute(e))===(a=l+"")?null:s===i&&a===o?r:(o=a,r=t(i=s,l))
12495
- this.removeAttribute(e)}}function yV(e,t,n){var i,o,r
12496
+ this.removeAttribute(e)}}function xV(e,t,n){var i,o,r
12496
12497
  return function(){var s,a,l=n(this)
12497
12498
  if(null!=l)return(s=this.getAttributeNS(e.space,e.local))===(a=l+"")?null:s===i&&a===o?r:(o=a,r=t(i=s,l))
12498
- this.removeAttributeNS(e.space,e.local)}}function xV(e,t){var n,i
12499
+ this.removeAttributeNS(e.space,e.local)}}function kV(e,t){var n,i
12499
12500
  function o(){var o=t.apply(this,arguments)
12500
- return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,o)),n}return o._value=t,o}function kV(e,t){var n,i
12501
+ return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,o)),n}return o._value=t,o}function CV(e,t){var n,i
12501
12502
  function o(){var o=t.apply(this,arguments)
12502
- return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,o)),n}return o._value=t,o}function CV(e,t){return function(){aV(this,e).delay=+t.apply(this,arguments)}}function SV(e,t){return t=+t,function(){aV(this,e).delay=t}}function $V(e,t){return function(){lV(this,e).duration=+t.apply(this,arguments)}}function MV(e,t){return t=+t,function(){lV(this,e).duration=t}}var _V=SL.prototype.constructor
12503
- function EV(e){return function(){this.style.removeProperty(e)}}var IV=0
12504
- function AV(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function OV(){return++IV}var TV=SL.prototype
12505
- AV.prototype={constructor:AV,select:function(e){var t=this._name,n=this._id
12506
- "function"!=typeof e&&(e=yz(e))
12507
- for(var i=this._groups,o=i.length,r=new Array(o),s=0;s<o;++s)for(var a,l,c=i[s],d=c.length,h=r[s]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=e.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,sV(h[u],t,n,u,h,cV(a,n)))
12508
- return new AV(r,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id
12509
- "function"!=typeof e&&(e=kz(e))
12510
- for(var i=this._groups,o=i.length,r=[],s=[],a=0;a<o;++a)for(var l,c=i[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=e.call(l,l.__data__,h,c),f=cV(l,n),m=0,g=p.length;m<g;++m)(u=p[m])&&sV(u,t,n,m,p,f)
12511
- r.push(p),s.push(l)}return new AV(r,s,t,n)},selectChild:TV.selectChild,selectChildren:TV.selectChildren,filter:function(e){"function"!=typeof e&&(e=Sz(e))
12503
+ return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,o)),n}return o._value=t,o}function SV(e,t){return function(){lV(this,e).delay=+t.apply(this,arguments)}}function $V(e,t){return t=+t,function(){lV(this,e).delay=t}}function MV(e,t){return function(){cV(this,e).duration=+t.apply(this,arguments)}}function _V(e,t){return t=+t,function(){cV(this,e).duration=t}}var EV=$L.prototype.constructor
12504
+ function IV(e){return function(){this.style.removeProperty(e)}}var AV=0
12505
+ function OV(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function TV(){return++AV}var RV=$L.prototype
12506
+ OV.prototype={constructor:OV,select:function(e){var t=this._name,n=this._id
12507
+ "function"!=typeof e&&(e=xz(e))
12508
+ for(var i=this._groups,o=i.length,r=new Array(o),s=0;s<o;++s)for(var a,l,c=i[s],d=c.length,h=r[s]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=e.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,aV(h[u],t,n,u,h,dV(a,n)))
12509
+ return new OV(r,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id
12510
+ "function"!=typeof e&&(e=Cz(e))
12511
+ for(var i=this._groups,o=i.length,r=[],s=[],a=0;a<o;++a)for(var l,c=i[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=e.call(l,l.__data__,h,c),f=dV(l,n),m=0,g=p.length;m<g;++m)(u=p[m])&&aV(u,t,n,m,p,f)
12512
+ r.push(p),s.push(l)}return new OV(r,s,t,n)},selectChild:RV.selectChild,selectChildren:RV.selectChildren,filter:function(e){"function"!=typeof e&&(e=$z(e))
12512
12513
  for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var r,s=t[o],a=s.length,l=i[o]=[],c=0;c<a;++c)(r=s[c])&&e.call(r,r.__data__,c,s)&&l.push(r)
12513
- return new AV(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
12514
+ return new OV(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
12514
12515
  for(var t=this._groups,n=e._groups,i=t.length,o=n.length,r=Math.min(i,o),s=new Array(i),a=0;a<r;++a)for(var l,c=t[a],d=n[a],h=c.length,u=s[a]=new Array(h),p=0;p<h;++p)(l=c[p]||d[p])&&(u[p]=l)
12515
12516
  for(;a<i;++a)s[a]=t[a]
12516
- return new AV(s,this._parents,this._name,this._id)},selection:function(){return new _V(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=OV(),i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)if(s=a[c]){var d=cV(s,t)
12517
- sV(s,e,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new AV(i,this._parents,e,n)},call:TV.call,nodes:TV.nodes,node:TV.node,size:TV.size,empty:TV.empty,each:TV.each,on:function(e,t){var n=this._id
12518
- return arguments.length<2?cV(this.node(),n).on.on(e):this.each(function(e,t,n){var i,o,r=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".")
12519
- return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?aV:lV
12517
+ return new OV(s,this._parents,this._name,this._id)},selection:function(){return new EV(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=TV(),i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)if(s=a[c]){var d=dV(s,t)
12518
+ aV(s,e,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new OV(i,this._parents,e,n)},call:RV.call,nodes:RV.nodes,node:RV.node,size:RV.size,empty:RV.empty,each:RV.each,on:function(e,t){var n=this._id
12519
+ return arguments.length<2?dV(this.node(),n).on.on(e):this.each(function(e,t,n){var i,o,r=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".")
12520
+ return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?lV:cV
12520
12521
  return function(){var s=r(this,e),a=s.on
12521
- a!==i&&(o=(i=a).copy()).on(t,n),s.on=o}}(n,e,t))},attr:function(e,t){var n=mz(e),i="transform"===n?IF:fV
12522
- return this.attrTween(e,"function"==typeof t?(n.local?yV:wV)(n,i,pV(this,"attr."+e,t)):null==t?(n.local?gV:mV)(n):(n.local?bV:vV)(n,i,t))},attrTween:function(e,t){var n="attr."+e
12522
+ a!==i&&(o=(i=a).copy()).on(t,n),s.on=o}}(n,e,t))},attr:function(e,t){var n=gz(e),i="transform"===n?AF:mV
12523
+ return this.attrTween(e,"function"==typeof t?(n.local?xV:yV)(n,i,fV(this,"attr."+e,t)):null==t?(n.local?vV:gV)(n):(n.local?wV:bV)(n,i,t))},attrTween:function(e,t){var n="attr."+e
12523
12524
  if(arguments.length<2)return(n=this.tween(n))&&n._value
12524
12525
  if(null==t)return this.tween(n,null)
12525
12526
  if("function"!=typeof t)throw new Error
12526
- var i=mz(e)
12527
- return this.tween(n,(i.local?xV:kV)(i,t))},style:function(e,t,n){var i="transform"==(e+="")?EF:fV
12527
+ var i=gz(e)
12528
+ return this.tween(n,(i.local?kV:CV)(i,t))},style:function(e,t,n){var i="transform"==(e+="")?IF:mV
12528
12529
  return null==t?this.styleTween(e,function(e,t){var n,i,o
12529
- return function(){var r=Zz(this,e),s=(this.style.removeProperty(e),Zz(this,e))
12530
- return r===s?null:r===n&&s===i?o:o=t(n=r,i=s)}}(e,i)).on("end.style."+e,EV(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var i,o,r
12531
- return function(){var s=Zz(this,e),a=n(this),l=a+""
12532
- return null==a&&(this.style.removeProperty(e),l=a=Zz(this,e)),s===l?null:s===i&&l===o?r:(o=l,r=t(i=s,a))}}(e,i,pV(this,"style."+e,t))).each(function(e,t){var n,i,o,r,s="style."+t,a="end."+s
12533
- return function(){var l=lV(this,e),c=l.on,d=null==l.value[s]?r||(r=EV(t)):void 0
12530
+ return function(){var r=Gz(this,e),s=(this.style.removeProperty(e),Gz(this,e))
12531
+ return r===s?null:r===n&&s===i?o:o=t(n=r,i=s)}}(e,i)).on("end.style."+e,IV(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var i,o,r
12532
+ return function(){var s=Gz(this,e),a=n(this),l=a+""
12533
+ return null==a&&(this.style.removeProperty(e),l=a=Gz(this,e)),s===l?null:s===i&&l===o?r:(o=l,r=t(i=s,a))}}(e,i,fV(this,"style."+e,t))).each(function(e,t){var n,i,o,r,s="style."+t,a="end."+s
12534
+ return function(){var l=cV(this,e),c=l.on,d=null==l.value[s]?r||(r=IV(t)):void 0
12534
12535
  c===n&&o===d||(i=(n=c).copy()).on(a,o=d),l.on=i}}(this._id,e)):this.styleTween(e,function(e,t,n){var i,o,r=n+""
12535
- return function(){var s=Zz(this,e)
12536
+ return function(){var s=Gz(this,e)
12536
12537
  return s===r?null:s===i?o:o=t(i=s,n)}}(e,i,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var i="style."+(e+="")
12537
12538
  if(arguments.length<2)return(i=this.tween(i))&&i._value
12538
12539
  if(null==t)return this.tween(i,null)
@@ -12540,7 +12541,7 @@ if("function"!=typeof t)throw new Error
12540
12541
  return this.tween(i,function(e,t,n){var i,o
12541
12542
  function r(){var r=t.apply(this,arguments)
12542
12543
  return r!==o&&(i=(o=r)&&function(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}(e,r,n)),i}return r._value=t,r}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this)
12543
- this.textContent=null==t?"":t}}(pV(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
12544
+ this.textContent=null==t?"":t}}(fV(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
12544
12545
  if(arguments.length<1)return(t=this.tween(t))&&t._value
12545
12546
  if(null==e)return this.tween(t,null)
12546
12547
  if("function"!=typeof e)throw new Error
@@ -12549,60 +12550,60 @@ function i(){var i=e.apply(this,arguments)
12549
12550
  return i!==n&&(t=(n=i)&&function(e){return function(t){this.textContent=e.call(this,t)}}(i)),t}return i._value=e,i}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode
12550
12551
  for(var n in this.__transition)if(+n!==e)return
12551
12552
  t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id
12552
- if(e+="",arguments.length<2){for(var i,o=cV(this.node(),n).tween,r=0,s=o.length;r<s;++r)if((i=o[r]).name===e)return i.value
12553
- return null}return this.each((null==t?hV:uV)(n,e,t))},delay:function(e){var t=this._id
12554
- return arguments.length?this.each(("function"==typeof e?CV:SV)(t,e)):cV(this.node(),t).delay},duration:function(e){var t=this._id
12555
- return arguments.length?this.each(("function"==typeof e?$V:MV)(t,e)):cV(this.node(),t).duration},ease:function(e){var t=this._id
12553
+ if(e+="",arguments.length<2){for(var i,o=dV(this.node(),n).tween,r=0,s=o.length;r<s;++r)if((i=o[r]).name===e)return i.value
12554
+ return null}return this.each((null==t?uV:pV)(n,e,t))},delay:function(e){var t=this._id
12555
+ return arguments.length?this.each(("function"==typeof e?SV:$V)(t,e)):dV(this.node(),t).delay},duration:function(e){var t=this._id
12556
+ return arguments.length?this.each(("function"==typeof e?MV:_V)(t,e)):dV(this.node(),t).duration},ease:function(e){var t=this._id
12556
12557
  return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error
12557
- return function(){lV(this,e).ease=t}}(t,e)):cV(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
12558
+ return function(){cV(this,e).ease=t}}(t,e)):dV(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
12558
12559
  return this.each(function(e,t){return function(){var n=t.apply(this,arguments)
12559
12560
  if("function"!=typeof n)throw new Error
12560
- lV(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,i=n._id,o=n.size()
12561
+ cV(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,i=n._id,o=n.size()
12561
12562
  return new Promise((function(r,s){var a={value:s},l={value:function(){0==--o&&r()}}
12562
- n.each((function(){var n=lV(this,i),o=n.on
12563
- o!==e&&((t=(e=o).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),n.on=t})),0===o&&r()}))},[Symbol.iterator]:TV[Symbol.iterator]}
12564
- var RV={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
12565
- function DV(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
12566
- return n}SL.prototype.interrupt=function(e){return this.each((function(){dV(this,e)}))},SL.prototype.transition=function(e){var t,n
12567
- e instanceof AV?(t=e._id,e=e._name):(t=OV(),(n=RV).time=qF(),e=null==e?null:e+"")
12568
- for(var i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)(s=a[c])&&sV(s,e,t,c,a,n||DV(s,t))
12569
- return new AV(i,this._parents,e,t)}
12570
- var NV=e=>()=>e
12571
- function PV(e,{sourceEvent:t,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function zV(e,t,n){this.k=e,this.x=t,this.y=n}zV.prototype={constructor:zV,scale:function(e){return 1===e?this:new zV(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new zV(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
12572
- var LV=new zV(1,0,0)
12573
- function FV(e){for(;!e.__zoom;)if(!(e=e.parentNode))return LV
12574
- return e.__zoom}function VV(e){e.stopImmediatePropagation()}function HV(e){e.preventDefault(),e.stopImmediatePropagation()}function BV(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function qV(){var e=this
12575
- return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function jV(){return this.__zoom||LV}function UV(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function WV(){return navigator.maxTouchPoints||"ontouchstart"in this}function ZV(e,t,n){var i=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1]
12576
- return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}function GV(){var e,t,n,i=BV,o=qV,r=ZV,s=UV,a=WV,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=RF,u=cz("start","zoom","end"),p=500,f=150,m=0,g=10
12577
- function v(e){e.property("__zoom",jV).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",M).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new zV(t,e.x,e.y)}function w(e,t,n){var i=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k
12578
- return i===e.x&&o===e.y?e:new zV(e.k,i,o)}function y(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,n,i){e.on("start.zoom",(function(){k(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){k(this,arguments).event(i).end()})).tween("zoom",(function(){var e=this,r=arguments,s=k(e,r).event(i),a=o.apply(e,r),l=null==n?y(a):"function"==typeof n?n.apply(e,r):n,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=e.__zoom,u="function"==typeof t?t.apply(e,r):t,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
12563
+ n.each((function(){var n=cV(this,i),o=n.on
12564
+ o!==e&&((t=(e=o).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),n.on=t})),0===o&&r()}))},[Symbol.iterator]:RV[Symbol.iterator]}
12565
+ var DV={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
12566
+ function NV(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
12567
+ return n}$L.prototype.interrupt=function(e){return this.each((function(){hV(this,e)}))},$L.prototype.transition=function(e){var t,n
12568
+ e instanceof OV?(t=e._id,e=e._name):(t=TV(),(n=DV).time=jF(),e=null==e?null:e+"")
12569
+ for(var i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)(s=a[c])&&aV(s,e,t,c,a,n||NV(s,t))
12570
+ return new OV(i,this._parents,e,t)}
12571
+ var PV=e=>()=>e
12572
+ function zV(e,{sourceEvent:t,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function LV(e,t,n){this.k=e,this.x=t,this.y=n}LV.prototype={constructor:LV,scale:function(e){return 1===e?this:new LV(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new LV(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
12573
+ var FV=new LV(1,0,0)
12574
+ function VV(e){for(;!e.__zoom;)if(!(e=e.parentNode))return FV
12575
+ return e.__zoom}function HV(e){e.stopImmediatePropagation()}function BV(e){e.preventDefault(),e.stopImmediatePropagation()}function qV(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function jV(){var e=this
12576
+ return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function UV(){return this.__zoom||FV}function WV(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function ZV(){return navigator.maxTouchPoints||"ontouchstart"in this}function GV(e,t,n){var i=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1]
12577
+ return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}function KV(){var e,t,n,i=qV,o=jV,r=GV,s=WV,a=ZV,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=DF,u=dz("start","zoom","end"),p=500,f=150,m=0,g=10
12578
+ function v(e){e.property("__zoom",UV).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",M).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new LV(t,e.x,e.y)}function w(e,t,n){var i=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k
12579
+ return i===e.x&&o===e.y?e:new LV(e.k,i,o)}function y(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,n,i){e.on("start.zoom",(function(){k(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){k(this,arguments).event(i).end()})).tween("zoom",(function(){var e=this,r=arguments,s=k(e,r).event(i),a=o.apply(e,r),l=null==n?y(a):"function"==typeof n?n.apply(e,r):n,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=e.__zoom,u="function"==typeof t?t.apply(e,r):t,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
12579
12580
  return function(e){if(1===e)e=u
12580
12581
  else{var t=p(e),n=c/t[2]
12581
- e=new zV(n,l[0]-t[0]*n,l[1]-t[1]*n)}s.zoom(null,e)}}))}function k(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function S(e,...t){if(i.apply(this,arguments)){var n=k(this,t).event(e),o=this.__zoom,a=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,s.apply(this,arguments)))),d=ML(e)
12582
+ e=new LV(n,l[0]-t[0]*n,l[1]-t[1]*n)}s.zoom(null,e)}}))}function k(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function S(e,...t){if(i.apply(this,arguments)){var n=k(this,t).event(e),o=this.__zoom,a=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,s.apply(this,arguments)))),d=_L(e)
12582
12583
  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)
12583
12584
  else{if(o.k===a)return
12584
- n.mouse=[d,o.invert(d)],dV(this),n.start()}HV(e),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),f),n.zoom("mouse",r(w(b(o,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function $(e,...t){if(!n&&i.apply(this,arguments)){var o=e.currentTarget,s=k(this,t,!0).event(e),a=$L(e.view).on("mousemove.zoom",(function(e){if(HV(e),!s.moved){var t=e.clientX-d,n=e.clientY-h
12585
- s.moved=t*t+n*n>m}s.event(e).zoom("mouse",r(w(s.that.__zoom,s.mouse[0]=ML(e,o),s.mouse[1]),s.extent,c))}),!0).on("mouseup.zoom",(function(e){a.on("mousemove.zoom mouseup.zoom",null),function(e,t){var n=e.document.documentElement,i=$L(e).on("dragstart.drag",null)
12586
- t&&(i.on("click.drag",EL,_L),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(e.view,s.moved),HV(e),s.event(e).end()}),!0),l=ML(e,o),d=e.clientX,h=e.clientY
12587
- !function(e){var t=e.document.documentElement,n=$L(e).on("dragstart.drag",EL,_L)
12588
- "onselectstart"in t?n.on("selectstart.drag",EL,_L):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(e.view),VV(e),s.mouse=[l,this.__zoom.invert(l)],dV(this),s.start()}}function M(e,...t){if(i.apply(this,arguments)){var n=this.__zoom,s=ML(e.changedTouches?e.changedTouches[0]:e,this),a=n.invert(s),l=n.k*(e.shiftKey?.5:2),h=r(w(b(n,l),s,a),o.apply(this,t),c)
12589
- HV(e),d>0?$L(this).transition().duration(d).call(x,h,s,e):$L(this).call(v.transform,h,s,e)}}function _(n,...o){if(i.apply(this,arguments)){var r,s,a,l,c=n.touches,d=c.length,h=k(this,o,n.changedTouches.length===d).event(n)
12590
- for(VV(n),s=0;s<d;++s)l=[l=ML(a=c[s],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,r=!0,h.taps=1+!!e)
12591
- e&&(e=clearTimeout(e)),r&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),dV(this),h.start())}}function E(e,...t){if(this.__zooming){var n,i,o,s,a=k(this,t).event(e),l=e.changedTouches,d=l.length
12592
- for(HV(e),n=0;n<d;++n)o=ML(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)
12585
+ n.mouse=[d,o.invert(d)],hV(this),n.start()}BV(e),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),f),n.zoom("mouse",r(w(b(o,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function $(e,...t){if(!n&&i.apply(this,arguments)){var o=e.currentTarget,s=k(this,t,!0).event(e),a=ML(e.view).on("mousemove.zoom",(function(e){if(BV(e),!s.moved){var t=e.clientX-d,n=e.clientY-h
12586
+ s.moved=t*t+n*n>m}s.event(e).zoom("mouse",r(w(s.that.__zoom,s.mouse[0]=_L(e,o),s.mouse[1]),s.extent,c))}),!0).on("mouseup.zoom",(function(e){a.on("mousemove.zoom mouseup.zoom",null),function(e,t){var n=e.document.documentElement,i=ML(e).on("dragstart.drag",null)
12587
+ t&&(i.on("click.drag",IL,EL),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(e.view,s.moved),BV(e),s.event(e).end()}),!0),l=_L(e,o),d=e.clientX,h=e.clientY
12588
+ !function(e){var t=e.document.documentElement,n=ML(e).on("dragstart.drag",IL,EL)
12589
+ "onselectstart"in t?n.on("selectstart.drag",IL,EL):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(e.view),HV(e),s.mouse=[l,this.__zoom.invert(l)],hV(this),s.start()}}function M(e,...t){if(i.apply(this,arguments)){var n=this.__zoom,s=_L(e.changedTouches?e.changedTouches[0]:e,this),a=n.invert(s),l=n.k*(e.shiftKey?.5:2),h=r(w(b(n,l),s,a),o.apply(this,t),c)
12590
+ BV(e),d>0?ML(this).transition().duration(d).call(x,h,s,e):ML(this).call(v.transform,h,s,e)}}function _(n,...o){if(i.apply(this,arguments)){var r,s,a,l,c=n.touches,d=c.length,h=k(this,o,n.changedTouches.length===d).event(n)
12591
+ for(HV(n),s=0;s<d;++s)l=[l=_L(a=c[s],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,r=!0,h.taps=1+!!e)
12592
+ e&&(e=clearTimeout(e)),r&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),hV(this),h.start())}}function E(e,...t){if(this.__zooming){var n,i,o,s,a=k(this,t).event(e),l=e.changedTouches,d=l.length
12593
+ for(BV(e),n=0;n<d;++n)o=_L(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)
12593
12594
  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
12594
12595
  i=b(i,Math.sqrt(m/g)),o=[(h[0]+p[0])/2,(h[1]+p[1])/2],s=[(u[0]+f[0])/2,(u[1]+f[1])/2]}else{if(!a.touch0)return
12595
12596
  o=a.touch0[0],s=a.touch0[1]}a.zoom("touch",r(w(i,o,s),a.extent,c))}}function I(e,...i){if(this.__zooming){var o,r,s=k(this,i).event(e),a=e.changedTouches,l=a.length
12596
- for(VV(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),o=0;o<l;++o)r=a[o],s.touch0&&s.touch0[2]===r.identifier?delete s.touch0:s.touch1&&s.touch1[2]===r.identifier&&delete s.touch1
12597
+ for(HV(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),o=0;o<l;++o)r=a[o],s.touch0&&s.touch0[2]===r.identifier?delete s.touch0:s.touch1&&s.touch1[2]===r.identifier&&delete s.touch1
12597
12598
  if(s.touch1&&!s.touch0&&(s.touch0=s.touch1,delete s.touch1),s.touch0)s.touch0[1]=this.__zoom.invert(s.touch0[0])
12598
- else if(s.end(),2===s.taps&&(r=ML(r,this),Math.hypot(t[0]-r[0],t[1]-r[1])<g)){var c=$L(this).on("dblclick.zoom")
12599
+ else if(s.end(),2===s.taps&&(r=_L(r,this),Math.hypot(t[0]-r[0],t[1]-r[1])<g)){var c=ML(this).on("dblclick.zoom")
12599
12600
  c&&c.apply(this,arguments)}}}return v.transform=function(e,t,n,i){var o=e.selection?e.selection():e
12600
- o.property("__zoom",jV),e!==o?x(e,t,n,i):o.interrupt().each((function(){k(this,arguments).event(i).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},v.scaleBy=function(e,t,n,i){v.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),n,i)},v.scaleTo=function(e,t,n,i){v.transform(e,(function(){var e=o.apply(this,arguments),i=this.__zoom,s=null==n?y(e):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(s),l="function"==typeof t?t.apply(this,arguments):t
12601
+ o.property("__zoom",UV),e!==o?x(e,t,n,i):o.interrupt().each((function(){k(this,arguments).event(i).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},v.scaleBy=function(e,t,n,i){v.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),n,i)},v.scaleTo=function(e,t,n,i){v.transform(e,(function(){var e=o.apply(this,arguments),i=this.__zoom,s=null==n?y(e):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(s),l="function"==typeof t?t.apply(this,arguments):t
12601
12602
  return r(w(b(i,l),s,a),e,c)}),n,i)},v.translateBy=function(e,t,n,i){v.transform(e,(function(){return r(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),o.apply(this,arguments),c)}),null,i)},v.translateTo=function(e,t,n,i,s){v.transform(e,(function(){var e=o.apply(this,arguments),s=this.__zoom,a=null==i?y(e):"function"==typeof i?i.apply(this,arguments):i
12602
- return r(LV.translate(a[0],a[1]).scale(s.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,c)}),i,s)},C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=$L(this.that).datum()
12603
- u.call(e,this.that,new PV(e,{sourceEvent:this.sourceEvent,target:v,type:e,transform:this.that.__zoom,dispatch:u}),t)}},v.wheelDelta=function(e){return arguments.length?(s="function"==typeof e?e:NV(+e),v):s},v.filter=function(e){return arguments.length?(i="function"==typeof e?e:NV(!!e),v):i},v.touchable=function(e){return arguments.length?(a="function"==typeof e?e:NV(!!e),v):a},v.extent=function(e){return arguments.length?(o="function"==typeof e?e:NV([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),v):o},v.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],v):[l[0],l[1]]},v.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(e){return arguments.length?(r=e,v):r},v.duration=function(e){return arguments.length?(d=+e,v):d},v.interpolate=function(e){return arguments.length?(h=e,v):h},v.on=function(){var e=u.on.apply(u,arguments)
12604
- return e===u?v:e},v.clickDistance=function(e){return arguments.length?(m=(e=+e)*e,v):Math.sqrt(m)},v.tapDistance=function(e){return arguments.length?(g=+e,v):g},v}FV.prototype=zV.prototype
12605
- const KV=Z`
12603
+ return r(FV.translate(a[0],a[1]).scale(s.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,c)}),i,s)},C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=ML(this.that).datum()
12604
+ u.call(e,this.that,new zV(e,{sourceEvent:this.sourceEvent,target:v,type:e,transform:this.that.__zoom,dispatch:u}),t)}},v.wheelDelta=function(e){return arguments.length?(s="function"==typeof e?e:PV(+e),v):s},v.filter=function(e){return arguments.length?(i="function"==typeof e?e:PV(!!e),v):i},v.touchable=function(e){return arguments.length?(a="function"==typeof e?e:PV(!!e),v):a},v.extent=function(e){return arguments.length?(o="function"==typeof e?e:PV([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),v):o},v.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],v):[l[0],l[1]]},v.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(e){return arguments.length?(r=e,v):r},v.duration=function(e){return arguments.length?(d=+e,v):d},v.interpolate=function(e){return arguments.length?(h=e,v):h},v.on=function(){var e=u.on.apply(u,arguments)
12605
+ return e===u?v:e},v.clickDistance=function(e){return arguments.length?(m=(e=+e)*e,v):Math.sqrt(m)},v.tapDistance=function(e){return arguments.length?(g=+e,v):g},v}VV.prototype=LV.prototype
12606
+ const JV=Z`
12606
12607
  <div class="wafer-map-container">
12607
12608
  <svg class="svg-root">
12608
12609
  <g ${Ne("zoomContainer")} transform=${e=>e.transform.toString()}>
@@ -12632,7 +12633,7 @@ const KV=Z`
12632
12633
  />
12633
12634
  </svg>
12634
12635
  </div>
12635
- `,JV=we`
12636
+ `,XV=we`
12636
12637
  :host {
12637
12638
  display: inline-block;
12638
12639
  width: 500px;
@@ -12716,68 +12717,68 @@ const KV=Z`
12716
12717
  outline-width: 0px;
12717
12718
  }
12718
12719
  `
12719
- function XV(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function YV(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function QV(e){let t,n,i
12720
+ function YV(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function QV(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function eH(e){let t,n,i
12720
12721
  function o(e,i,o=0,r=e.length){if(o<r){if(0!==t(i,i))return r
12721
12722
  do{const t=o+r>>>1
12722
- n(e[t],i)<0?o=t+1:r=t}while(o<r)}return o}return 2!==e.length?(t=XV,n=(t,n)=>XV(e(t),n),i=(t,n)=>e(t)-n):(t=e===XV||e===YV?e:eH,n=e,i=e),{left:o,center:function(e,t,n=0,r=e.length){const s=o(e,t,n,r-1)
12723
+ n(e[t],i)<0?o=t+1:r=t}while(o<r)}return o}return 2!==e.length?(t=YV,n=(t,n)=>YV(e(t),n),i=(t,n)=>e(t)-n):(t=e===YV||e===QV?e:tH,n=e,i=e),{left:o,center:function(e,t,n=0,r=e.length){const s=o(e,t,n,r-1)
12723
12724
  return s>n&&i(e[s-1],t)>-i(e[s],t)?s-1:s},right:function(e,i,o=0,r=e.length){if(o<r){if(0!==t(i,i))return r
12724
12725
  do{const t=o+r>>>1
12725
- n(e[t],i)<=0?o=t+1:r=t}while(o<r)}return o}}}function eH(){return 0}function tH(e){return null===e?NaN:+e}const nH=QV(XV).right
12726
- QV(tH).center
12727
- var iH=nH
12728
- class oH extends Map{constructor(e,t=sH){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(rH(this,e))}has(e){return super.has(rH(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const i=t(n)
12726
+ n(e[t],i)<=0?o=t+1:r=t}while(o<r)}return o}}}function tH(){return 0}function nH(e){return null===e?NaN:+e}const iH=eH(YV).right
12727
+ eH(nH).center
12728
+ var oH=iH
12729
+ class rH extends Map{constructor(e,t=aH){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(sH(this,e))}has(e){return super.has(sH(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const i=t(n)
12729
12730
  return e.has(i)?e.get(i):(e.set(i,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const i=t(n)
12730
12731
  e.has(i)&&(n=e.get(i),e.delete(i))
12731
- return n}(this,e))}}function rH({_intern:e,_key:t},n){const i=t(n)
12732
- return e.has(i)?e.get(i):n}function sH(e){return null!==e&&"object"==typeof e?e.valueOf():e}const aH=Math.sqrt(50),lH=Math.sqrt(10),cH=Math.sqrt(2)
12733
- function dH(e,t,n){const i=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(i)),r=i/Math.pow(10,o),s=r>=aH?10:r>=lH?5:r>=cH?2:1
12732
+ return n}(this,e))}}function sH({_intern:e,_key:t},n){const i=t(n)
12733
+ return e.has(i)?e.get(i):n}function aH(e){return null!==e&&"object"==typeof e?e.valueOf():e}const lH=Math.sqrt(50),cH=Math.sqrt(10),dH=Math.sqrt(2)
12734
+ function hH(e,t,n){const i=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(i)),r=i/Math.pow(10,o),s=r>=lH?10:r>=cH?5:r>=dH?2:1
12734
12735
  let a,l,c
12735
- return o<0?(c=Math.pow(10,-o)/s,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*s,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=n&&n<2?dH(e,t,2*n):[a,l,c]}function hH(e,t,n){return dH(e=+e,t=+t,n=+n)[2]}function uH(e,t,n=tH){if((i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return+n(e[0],0,e)
12736
+ return o<0?(c=Math.pow(10,-o)/s,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*s,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=n&&n<2?hH(e,t,2*n):[a,l,c]}function uH(e,t,n){return hH(e=+e,t=+t,n=+n)[2]}function pH(e,t,n=nH){if((i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return+n(e[0],0,e)
12736
12737
  if(t>=1)return+n(e[i-1],i-1,e)
12737
12738
  var i,o=(i-1)*t,r=Math.floor(o),s=+n(e[r],r,e)
12738
- return s+(+n(e[r+1],r+1,e)-s)*(o-r)}}function pH(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n
12739
+ return s+(+n(e[r+1],r+1,e)-s)*(o-r)}}function fH(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n
12739
12740
  for(var i=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),r=new Array(o);++i<o;)r[i]=e+i*n
12740
- return r}function fH(e,t){switch(arguments.length){case 0:break
12741
+ return r}function mH(e,t){switch(arguments.length){case 0:break
12741
12742
  case 1:this.range(e)
12742
12743
  break
12743
- default:this.range(t).domain(e)}return this}const mH=Symbol("implicit")
12744
- function gH(){var e=new oH,t=[],n=[],i=mH
12744
+ default:this.range(t).domain(e)}return this}const gH=Symbol("implicit")
12745
+ function vH(){var e=new rH,t=[],n=[],i=gH
12745
12746
  function o(o){let r=e.get(o)
12746
- if(void 0===r){if(i!==mH)return i
12747
+ if(void 0===r){if(i!==gH)return i
12747
12748
  e.set(o,r=t.push(o)-1)}return n[r%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice()
12748
- t=[],e=new oH
12749
+ t=[],e=new rH
12749
12750
  for(const i of n)e.has(i)||e.set(i,t.push(i)-1)
12750
- return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(i=e,o):i},o.copy=function(){return gH(t,n).unknown(i)},fH.apply(o,arguments),o}function vH(){var e,t,n=gH().unknown(void 0),i=n.domain,o=n.range,r=0,s=1,a=!1,l=0,c=0,d=.5
12751
+ return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(i=e,o):i},o.copy=function(){return vH(t,n).unknown(i)},mH.apply(o,arguments),o}function bH(){var e,t,n=vH().unknown(void 0),i=n.domain,o=n.range,r=0,s=1,a=!1,l=0,c=0,d=.5
12751
12752
  function h(){var n=i().length,h=s<r,u=h?s:r,p=h?r:s
12752
12753
  e=(p-u)/Math.max(1,n-l+2*c),a&&(e=Math.floor(e)),u+=(p-u-e*(n-l))*d,t=e*(1-l),a&&(u=Math.round(u),t=Math.round(t))
12753
- var f=pH(n).map((function(t){return u+e*t}))
12754
- return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(i(e),h()):i()},n.range=function(e){return arguments.length?([r,s]=e,r=+r,s=+s,h()):[r,s]},n.rangeRound=function(e){return[r,s]=e,r=+r,s=+s,a=!0,h()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,h()):a},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},n.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},n.copy=function(){return vH(i(),[r,s]).round(a).paddingInner(l).paddingOuter(c).align(d)},fH.apply(h(),arguments)}function bH(e){return+e}var wH=[0,1]
12755
- function yH(e){return e}function xH(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})
12756
- var n}function kH(e,t,n){var i=e[0],o=e[1],r=t[0],s=t[1]
12757
- return o<i?(i=xH(o,i),r=n(s,r)):(i=xH(i,o),r=n(r,s)),function(e){return r(i(e))}}function CH(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),r=new Array(i),s=-1
12758
- for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=xH(e[s],e[s+1]),r[s]=n(t[s],t[s+1])
12759
- return function(t){var n=iH(e,t,1,i)-1
12760
- return r[n](o[n](t))}}function SH(){var e,t,n,i,o,r,s=wH,a=wH,l=xF,c=yH
12754
+ var f=fH(n).map((function(t){return u+e*t}))
12755
+ return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(i(e),h()):i()},n.range=function(e){return arguments.length?([r,s]=e,r=+r,s=+s,h()):[r,s]},n.rangeRound=function(e){return[r,s]=e,r=+r,s=+s,a=!0,h()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,h()):a},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},n.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},n.copy=function(){return bH(i(),[r,s]).round(a).paddingInner(l).paddingOuter(c).align(d)},mH.apply(h(),arguments)}function wH(e){return+e}var yH=[0,1]
12756
+ function xH(e){return e}function kH(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})
12757
+ var n}function CH(e,t,n){var i=e[0],o=e[1],r=t[0],s=t[1]
12758
+ return o<i?(i=kH(o,i),r=n(s,r)):(i=kH(i,o),r=n(r,s)),function(e){return r(i(e))}}function SH(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),r=new Array(i),s=-1
12759
+ for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=kH(e[s],e[s+1]),r[s]=n(t[s],t[s+1])
12760
+ return function(t){var n=oH(e,t,1,i)-1
12761
+ return r[n](o[n](t))}}function $H(){var e,t,n,i,o,r,s=yH,a=yH,l=kF,c=xH
12761
12762
  function d(){var e,t,n,l=Math.min(s.length,a.length)
12762
- return c!==yH&&(e=s[0],t=s[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),i=l>2?CH:kH,o=r=null,h}function h(t){return null==t||isNaN(t=+t)?n:(o||(o=i(s.map(e),a,l)))(e(c(t)))}return h.invert=function(n){return c(t((r||(r=i(a,s.map(e),gF)))(n)))},h.domain=function(e){return arguments.length?(s=Array.from(e,bH),d()):s.slice()},h.range=function(e){return arguments.length?(a=Array.from(e),d()):a.slice()},h.rangeRound=function(e){return a=Array.from(e),l=kF,d()},h.clamp=function(e){return arguments.length?(c=!!e||yH,d()):c!==yH},h.interpolate=function(e){return arguments.length?(l=e,d()):l},h.unknown=function(e){return arguments.length?(n=e,h):n},function(n,i){return e=n,t=i,d()}}function $H(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
12763
+ return c!==xH&&(e=s[0],t=s[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),i=l>2?SH:CH,o=r=null,h}function h(t){return null==t||isNaN(t=+t)?n:(o||(o=i(s.map(e),a,l)))(e(c(t)))}return h.invert=function(n){return c(t((r||(r=i(a,s.map(e),vF)))(n)))},h.domain=function(e){return arguments.length?(s=Array.from(e,wH),d()):s.slice()},h.range=function(e){return arguments.length?(a=Array.from(e),d()):a.slice()},h.rangeRound=function(e){return a=Array.from(e),l=CF,d()},h.clamp=function(e){return arguments.length?(c=!!e||xH,d()):c!==xH},h.interpolate=function(e){return arguments.length?(l=e,d()):l},h.unknown=function(e){return arguments.length?(n=e,h):n},function(n,i){return e=n,t=i,d()}}function MH(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
12763
12764
  var n,i=e.slice(0,n)
12764
- return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function MH(e){return(e=$H(Math.abs(e)))?e[1]:NaN}var _H,EH=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
12765
- function IH(e){if(!(t=EH.exec(e)))throw new Error("invalid format: "+e)
12765
+ return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function _H(e){return(e=MH(Math.abs(e)))?e[1]:NaN}var EH,IH=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
12766
+ function AH(e){if(!(t=IH.exec(e)))throw new Error("invalid format: "+e)
12766
12767
  var t
12767
- return new AH({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function AH(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function OH(e,t){var n=$H(e,t)
12768
+ return new OH({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function OH(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function TH(e,t){var n=MH(e,t)
12768
12769
  if(!n)return e+""
12769
12770
  var i=n[0],o=n[1]
12770
- 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")}IH.prototype=AH.prototype,AH.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}
12771
- var TH={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>OH(100*e,t),r:OH,s:function(e,t){var n=$H(e,t)
12771
+ 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")}AH.prototype=OH.prototype,OH.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}
12772
+ var RH={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>TH(100*e,t),r:TH,s:function(e,t){var n=MH(e,t)
12772
12773
  if(!n)return e+""
12773
- var i=n[0],o=n[1],r=o-(_H=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length
12774
- return r===s?i:r>s?i+new Array(r-s+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+$H(e,Math.max(0,t+r-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
12775
- function RH(e){return e}var DH,NH,PH,zH=Array.prototype.map,LH=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
12776
- function FH(e){var t,n,i=void 0===e.grouping||void 0===e.thousands?RH:(t=zH.call(e.grouping,Number),n=e.thousands+"",function(e,i){for(var o=e.length,r=[],s=0,a=t[0],l=0;o>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),r.push(e.substring(o-=a,o+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length]
12777
- return r.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",r=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?RH:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(zH.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+""
12778
- function h(e){var t=(e=IH(e)).fill,n=e.align,h=e.sign,u=e.symbol,p=e.zero,f=e.width,m=e.comma,g=e.precision,v=e.trim,b=e.type
12779
- "n"===b?(m=!0,b="g"):TH[b]||(void 0===g&&(g=12),v=!0,b="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=")
12780
- var w="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",y="$"===u?r:/[%p]/.test(b)?l:"",x=TH[b],k=/[defgprs%]/.test(b)
12774
+ var i=n[0],o=n[1],r=o-(EH=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length
12775
+ return r===s?i:r>s?i+new Array(r-s+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+MH(e,Math.max(0,t+r-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
12776
+ function DH(e){return e}var NH,PH,zH,LH=Array.prototype.map,FH=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
12777
+ function VH(e){var t,n,i=void 0===e.grouping||void 0===e.thousands?DH:(t=LH.call(e.grouping,Number),n=e.thousands+"",function(e,i){for(var o=e.length,r=[],s=0,a=t[0],l=0;o>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),r.push(e.substring(o-=a,o+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length]
12778
+ return r.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",r=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?DH:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(LH.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+""
12779
+ function h(e){var t=(e=AH(e)).fill,n=e.align,h=e.sign,u=e.symbol,p=e.zero,f=e.width,m=e.comma,g=e.precision,v=e.trim,b=e.type
12780
+ "n"===b?(m=!0,b="g"):RH[b]||(void 0===g&&(g=12),v=!0,b="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=")
12781
+ var w="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",y="$"===u?r:/[%p]/.test(b)?l:"",x=RH[b],k=/[defgprs%]/.test(b)
12781
12782
  function C(e){var o,r,l,u=w,C=y
12782
12783
  if("c"===b)C=x(e)+C,e=""
12783
12784
  else{var S=(e=+e)<0||1/e<0
@@ -12786,7 +12787,7 @@ break
12786
12787
  case"0":0===o&&(o=i),t=i
12787
12788
  break
12788
12789
  default:if(!+e[i])break e
12789
- o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,C=("s"===b?LH[8+_H/3]:"")+C+(S&&"("===h?")":""),k)for(o=-1,r=e.length;++o<r;)if(48>(l=e.charCodeAt(o))||l>57){C=(46===l?s+e.slice(o+1):e.slice(o))+C,e=e.slice(0,o)
12790
+ o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,C=("s"===b?FH[8+EH/3]:"")+C+(S&&"("===h?")":""),k)for(o=-1,r=e.length;++o<r;)if(48>(l=e.charCodeAt(o))||l>57){C=(46===l?s+e.slice(o+1):e.slice(o))+C,e=e.slice(0,o)
12790
12791
  break}}m&&!p&&(e=i(e,1/0))
12791
12792
  var $=u.length+e.length+C.length,M=$<f?new Array(f-$+1).join(t):""
12792
12793
  switch(m&&p&&(e=i(M+e,M.length?f-C.length:1/0),M=""),n){case"<":e=u+e+C+M
@@ -12795,19 +12796,19 @@ case"=":e=u+M+e+C
12795
12796
  break
12796
12797
  case"^":e=M.slice(0,$=M.length>>1)+u+e+C+M.slice($)
12797
12798
  break
12798
- default:e=M+u+e+C}return a(e)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var n=h(((e=IH(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(MH(t)/3))),o=Math.pow(10,-i),r=LH[8+i/3]
12799
- return function(e){return n(o*e)+r}}}}function VH(e,t,n,i){var o,r=function(e,t,n){n=+n
12800
- const i=(t=+t)<(e=+e),o=i?hH(t,e,n):hH(e,t,n)
12799
+ default:e=M+u+e+C}return a(e)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var n=h(((e=AH(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(_H(t)/3))),o=Math.pow(10,-i),r=FH[8+i/3]
12800
+ return function(e){return n(o*e)+r}}}}function HH(e,t,n,i){var o,r=function(e,t,n){n=+n
12801
+ const i=(t=+t)<(e=+e),o=i?uH(t,e,n):uH(e,t,n)
12801
12802
  return(i?-1:1)*(o<0?1/-o:o)}(e,t,n)
12802
- switch((i=IH(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t))
12803
- return null!=i.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(MH(t)/3)))-MH(Math.abs(e)))}(r,s))||(i.precision=o),PH(i,s)
12804
- case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,MH(t)-MH(e))+1}(r,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=o-("e"===i.type))
12803
+ switch((i=AH(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t))
12804
+ return null!=i.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(_H(t)/3)))-_H(Math.abs(e)))}(r,s))||(i.precision=o),zH(i,s)
12805
+ case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,_H(t)-_H(e))+1}(r,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=o-("e"===i.type))
12805
12806
  break
12806
- case"f":case"%":null!=i.precision||isNaN(o=function(e){return Math.max(0,-MH(Math.abs(e)))}(r))||(i.precision=o-2*("%"===i.type))}return NH(i)}function HH(e){var t=e.domain
12807
+ case"f":case"%":null!=i.precision||isNaN(o=function(e){return Math.max(0,-_H(Math.abs(e)))}(r))||(i.precision=o-2*("%"===i.type))}return PH(i)}function BH(e){var t=e.domain
12807
12808
  return e.ticks=function(e){var n=t()
12808
12809
  return function(e,t,n){if(!((n=+n)>0))return[]
12809
12810
  if((e=+e)==(t=+t))return[e]
12810
- const i=t<e,[o,r,s]=i?dH(t,e,n):dH(e,t,n)
12811
+ const i=t<e,[o,r,s]=i?hH(t,e,n):hH(e,t,n)
12811
12812
  if(!(r>=o))return[]
12812
12813
  const a=r-o+1,l=new Array(a)
12813
12814
  if(i)if(s<0)for(let e=0;e<a;++e)l[e]=(r-e)/-s
@@ -12815,23 +12816,23 @@ else for(let e=0;e<a;++e)l[e]=(r-e)*s
12815
12816
  else if(s<0)for(let e=0;e<a;++e)l[e]=(o+e)/-s
12816
12817
  else for(let e=0;e<a;++e)l[e]=(o+e)*s
12817
12818
  return l}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var i=t()
12818
- return VH(i[0],i[i.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10)
12819
+ return HH(i[0],i[i.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10)
12819
12820
  var i,o,r=t(),s=0,a=r.length-1,l=r[s],c=r[a],d=10
12820
- for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);d-- >0;){if((o=hH(l,c,n))===i)return r[s]=l,r[a]=c,t(r)
12821
+ for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);d-- >0;){if((o=uH(l,c,n))===i)return r[s]=l,r[a]=c,t(r)
12821
12822
  if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o
12822
12823
  else{if(!(o<0))break
12823
- l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return e},e}function BH(){var e=SH()(yH,yH)
12824
- return e.copy=function(){return t=e,BH().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())
12825
- var t},fH.apply(e,arguments),HH(e)}function qH(){var e,t=[],n=[],i=[]
12824
+ l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return e},e}function qH(){var e=$H()(xH,xH)
12825
+ return e.copy=function(){return t=e,qH().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())
12826
+ var t},mH.apply(e,arguments),BH(e)}function jH(){var e,t=[],n=[],i=[]
12826
12827
  function o(){var e=0,o=Math.max(1,n.length)
12827
- for(i=new Array(o-1);++e<o;)i[e-1]=uH(t,e/o)
12828
- return r}function r(t){return null==t||isNaN(t=+t)?e:n[iH(i,t)]}return r.invertExtent=function(e){var o=n.indexOf(e)
12828
+ for(i=new Array(o-1);++e<o;)i[e-1]=pH(t,e/o)
12829
+ return r}function r(t){return null==t||isNaN(t=+t)?e:n[oH(i,t)]}return r.invertExtent=function(e){var o=n.indexOf(e)
12829
12830
  return o<0?[NaN,NaN]:[o>0?i[o-1]:t[0],o<i.length?i[o]:t[t.length-1]]},r.domain=function(e){if(!arguments.length)return t.slice()
12830
12831
  t=[]
12831
12832
  for(let n of e)null==n||isNaN(n=+n)||t.push(n)
12832
- return t.sort(XV),o()},r.range=function(e){return arguments.length?(n=Array.from(e),o()):n.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.quantiles=function(){return i.slice()},r.copy=function(){return qH().domain(t).range(n).unknown(e)},fH.apply(r,arguments)}DH=FH({thousands:",",grouping:[3],currency:["$",""]}),NH=DH.format,PH=DH.formatPrefix
12833
- const jH="bottom-left",UH="bottom-right",WH="top-left",ZH="top",GH="show",KH="hide",JH="linear",XH="ordinal"
12834
- class YH{constructor(e){this.wafermap=e,this.defaultPadding=0,this.baseMarginPercentage=.04}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}updateContainerDimensions(){const e={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},t=Math.min(e.width,e.height),n={top:(e.height-t)/2,right:(e.width-t)/2,bottom:(e.height-t)/2,left:(e.width-t)/2},i={top:t*this.baseMarginPercentage,right:t*this.baseMarginPercentage,bottom:t*this.baseMarginPercentage,left:t*this.baseMarginPercentage}
12833
+ return t.sort(YV),o()},r.range=function(e){return arguments.length?(n=Array.from(e),o()):n.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.quantiles=function(){return i.slice()},r.copy=function(){return jH().domain(t).range(n).unknown(e)},mH.apply(r,arguments)}NH=VH({thousands:",",grouping:[3],currency:["$",""]}),PH=NH.format,zH=NH.formatPrefix
12834
+ const UH="bottom-left",WH="bottom-right",ZH="top-left",GH="top",KH="show",JH="hide",XH="linear",YH="ordinal"
12835
+ class QH{constructor(e){this.wafermap=e,this.defaultPadding=0,this.baseMarginPercentage=.04}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}updateContainerDimensions(){const e={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},t=Math.min(e.width,e.height),n={top:(e.height-t)/2,right:(e.width-t)/2,bottom:(e.height-t)/2,left:(e.width-t)/2},i={top:t*this.baseMarginPercentage,right:t*this.baseMarginPercentage,bottom:t*this.baseMarginPercentage,left:t*this.baseMarginPercentage}
12835
12836
  this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(e,this._margin)
12836
12837
  const o=Math.min(this._containerDimensions.width,this._containerDimensions.height)
12837
12838
  this._radius=o/2,this.updateScales()}updateScales(){const e=Math.min(this._containerDimensions.width,this._containerDimensions.height),t=this.gridDimensionsValidAndDefined()?this.calculateGridDimensionsFromBoundingBox():this.calculateGridDimensionsFromDies(this.wafermap.dies),n=this.wafermap.originLocation
@@ -12839,19 +12840,19 @@ this._horizontalScale=this.createHorizontalScale(n,t,e),this._invertedHorizontal
12839
12840
  return"number"==typeof this.wafermap.gridMaxY&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX&&(e.origin.x=this.wafermap.gridMinX,e.origin.y=this.wafermap.gridMinY,e.rows=this.wafermap.gridMaxY-this.wafermap.gridMinY+1,e.cols=this.wafermap.gridMaxX-this.wafermap.gridMinX+1),e}calculateGridDimensionsFromDies(e){if(0===e.length||void 0===e[0])return{origin:{x:0,y:0},rows:0,cols:0}
12840
12841
  const t={x:e[0].x,y:e[0].y},n={x:e[0].x,y:e[0].y}
12841
12842
  for(const i of e)i.x<t.x&&(t.x=i.x),i.y<t.y&&(t.y=i.y),i.x>n.x&&(n.x=i.x),i.y>n.y&&(n.y=i.y)
12842
- return{origin:t,rows:n.y-t.y+1,cols:n.x-t.x+1}}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t,n){const i=vH().domain(pH(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
12843
- return e===jH||e===WH?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(e,t,n){const i=qH().domain([0,n])
12844
- return e===jH||e===WH?i.range(pH(t.origin.x,t.origin.x+t.cols)):i.range(pH(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,n){const i=vH().domain(pH(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
12845
- return e===jH||e===UH?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(e,t,n){const i=qH().domain([0,n])
12846
- return e===jH||e===UH?i.range(pH(t.origin.y,t.origin.y+t.rows).reverse()):i.range(pH(t.origin.y,t.origin.y+t.rows))}calculateMarginAddition(e,t){return{top:e.top+t.top,right:e.right+t.right,bottom:e.bottom+t.bottom,left:e.left+t.left}}}class QH{constructor(e,t){this.wafermap=e,this.dataManager=t,this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)"}get labelsFontSize(){return this._labelsFontSize}get diesRenderInfo(){return this._diesRenderInfo}updateLabelsFontSize(){this._labelsFontSize=this.calculateLabelsFontSize(this.dataManager.dieDimensions,this.wafermap.maxCharacters),this.updateDiesRenderInfo()}updateDiesRenderInfo(){this.d3ColorScale=this.createD3ColorScale(this.wafermap.colorScale,this.wafermap.colorScaleMode),this._diesRenderInfo=this.wafermap.dies.map((e=>this.computeDieRenderInfo(e))).filter((e=>null!==e))}computeDieRenderInfo(e){const t=this.dataManager.margin,n=this.dataManager.horizontalScale(e.x),i=this.dataManager.verticalScale(e.y)
12847
- return void 0===n||void 0===i?null:{x:n+t.right,y:i+t.top,fillStyle:this.calculateFillStyle(e.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,e.tags),text:this.buildLabel(e.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?BH().domain(e.values.map((e=>+e))).range(e.colors):gH().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,n,i){if(n||!this.dieHasData(e))return""
12843
+ return{origin:t,rows:n.y-t.y+1,cols:n.x-t.x+1}}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t,n){const i=bH().domain(fH(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
12844
+ return e===UH||e===ZH?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(e,t,n){const i=jH().domain([0,n])
12845
+ return e===UH||e===ZH?i.range(fH(t.origin.x,t.origin.x+t.cols)):i.range(fH(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,n){const i=bH().domain(fH(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
12846
+ return e===UH||e===WH?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(e,t,n){const i=jH().domain([0,n])
12847
+ return e===UH||e===WH?i.range(fH(t.origin.y,t.origin.y+t.rows).reverse()):i.range(fH(t.origin.y,t.origin.y+t.rows))}calculateMarginAddition(e,t){return{top:e.top+t.top,right:e.right+t.right,bottom:e.bottom+t.bottom,left:e.left+t.left}}}class eB{constructor(e,t){this.wafermap=e,this.dataManager=t,this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)"}get labelsFontSize(){return this._labelsFontSize}get diesRenderInfo(){return this._diesRenderInfo}updateLabelsFontSize(){this._labelsFontSize=this.calculateLabelsFontSize(this.dataManager.dieDimensions,this.wafermap.maxCharacters),this.updateDiesRenderInfo()}updateDiesRenderInfo(){this.d3ColorScale=this.createD3ColorScale(this.wafermap.colorScale,this.wafermap.colorScaleMode),this._diesRenderInfo=this.wafermap.dies.map((e=>this.computeDieRenderInfo(e))).filter((e=>null!==e))}computeDieRenderInfo(e){const t=this.dataManager.margin,n=this.dataManager.horizontalScale(e.x),i=this.dataManager.verticalScale(e.y)
12848
+ return void 0===n||void 0===i?null:{x:n+t.right,y:i+t.top,fillStyle:this.calculateFillStyle(e.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,e.tags),text:this.buildLabel(e.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?qH().domain(e.values.map((e=>+e))).range(e.colors):vH().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,n,i){if(n||!this.dieHasData(e))return""
12848
12849
  const o=`${e}${i}`
12849
12850
  return o.length>t?`${o.substring(0,t)}…`:o}calculateOpacity(e,t){if(!t||0===t.length)return 1
12850
12851
  const n=new Set(t)
12851
- return e?.some((e=>n.has(e)))?1:this.nonHighlightedOpacity}isColorScaleLinear(e){return e===JH}isColorScaleOrdinal(e){return e===XH}calculateFillStyle(e,t,n,i){let o=this.emptyDieColor
12852
+ return e?.some((e=>n.has(e)))?1:this.nonHighlightedOpacity}isColorScaleLinear(e){return e===XH}isColorScaleOrdinal(e){return e===YH}calculateFillStyle(e,t,n,i){let o=this.emptyDieColor
12852
12853
  if(this.dieHasData(e)&&(isNaN(+e)?o=this.nanDieColor:this.isColorScaleLinear(t)?o=this.d3ColorScale(+e):this.isColorScaleOrdinal(t)&&(o=this.d3ColorScale(e))),void 0===o)return this.emptyDieColor
12853
12854
  let r=Zo(o)
12854
- return null===r?this.emptyDieColor:(r=new Fo(r.r,r.g,r.b,this.calculateOpacity(i,n)),r.toStringWebRGBA())}}class eB{constructor(e){this.wafermap=e,this.computations=new YH(e),this.prerendering=new QH(e,this)}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}updateContainerDimensions(){this.computations.updateContainerDimensions(),this.updateDataMap(),this.updateLabelsFontSize()}updateScales(){this.computations.updateScales(),this.updateDataMap(),this.updateLabelsFontSize()}updateLabelsFontSize(){this.prerendering.updateLabelsFontSize()}updateDiesRenderInfo(){this.prerendering.updateDiesRenderInfo()}getWaferMapDie(e){return this.dataMap.get(`${e.x}_${e.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((e=>[`${e.x}_${e.y}`,e])))}}class tB{constructor(e){this.wafermap=e,this.minDieDim=50}updateSortedDiesAndDrawWafer(){this.dies=this.wafermap.dataManager.diesRenderInfo.sort(((e,t)=>e.fillStyle>t.fillStyle?1:t.fillStyle>e.fillStyle?-1:0)),this.drawWafer()}drawWafer(){this.wafermap.canvasContext.save(),this.clearCanvas(),this.scaleCanvas(),this.renderDies(),this.renderText(),this.wafermap.canvasContext.restore(),this.renderHover()}renderHover(){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?KH:GH,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
12855
+ return null===r?this.emptyDieColor:(r=new Fo(r.r,r.g,r.b,this.calculateOpacity(i,n)),r.toStringWebRGBA())}}class tB{constructor(e){this.wafermap=e,this.computations=new QH(e),this.prerendering=new eB(e,this)}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}updateContainerDimensions(){this.computations.updateContainerDimensions(),this.updateDataMap(),this.updateLabelsFontSize()}updateScales(){this.computations.updateScales(),this.updateDataMap(),this.updateLabelsFontSize()}updateLabelsFontSize(){this.prerendering.updateLabelsFontSize()}updateDiesRenderInfo(){this.prerendering.updateDiesRenderInfo()}getWaferMapDie(e){return this.dataMap.get(`${e.x}_${e.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((e=>[`${e.x}_${e.y}`,e])))}}class nB{constructor(e){this.wafermap=e,this.minDieDim=50}updateSortedDiesAndDrawWafer(){this.dies=this.wafermap.dataManager.diesRenderInfo.sort(((e,t)=>e.fillStyle>t.fillStyle?1:t.fillStyle>e.fillStyle?-1:0)),this.drawWafer()}drawWafer(){this.wafermap.canvasContext.save(),this.clearCanvas(),this.scaleCanvas(),this.renderDies(),this.renderText(),this.wafermap.canvasContext.restore(),this.renderHover()}renderHover(){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?JH:KH,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
12855
12856
  if(void 0===e)return""
12856
12857
  const t=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y)
12857
12858
  if(void 0===t)return""
@@ -12864,19 +12865,19 @@ if(e*t*(this.wafermap.transform.k||1)>=this.minDieDim){const n=this.wafermap.dat
12864
12865
  i.font=`${n.toString()}px sans-serif`,i.fillStyle="#ffffff",i.textAlign="center",i.lineCap="butt"
12865
12866
  const o=i.measureText("M"),r=this.wafermap.transform.invert([0,0]),s=this.wafermap.transform.invert([this.wafermap.canvas.width,this.wafermap.canvas.height])
12866
12867
  r[0]-=e,r[1]-=t
12867
- for(const n of this.dies)this.isDieVisible(n,r,s)&&i.fillText(n.text,n.x+e/2,n.y+t/2+o.width/2,e-e/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}isDieVisible(e,t,n){return e.x>=t[0]&&e.x<n[0]&&e.y>=t[1]&&e.y<n[1]}}class nB{constructor(e){this.wafermap=e,this.zoomTransform=LV,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100}createZoomBehavior(){this.zoomBehavior=GV().scaleExtent([1.1,this.getZoomMax(this.wafermap.canvasWidth*this.wafermap.canvasHeight,this.wafermap.dataManager.containerDimensions.width*this.wafermap.dataManager.containerDimensions.height)]).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth+this.extentPadding,this.wafermap.canvasHeight+this.extentPadding]]).filter((e=>FV(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)})),this.zoomBehavior($L(this.wafermap.canvas))}rescale(e){const t=e.transform
12868
- t.k===this.minScale?(this.zoomTransform=LV,this.zoomBehavior.transform($L(this.wafermap.canvas),LV)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}getZoomMax(e,t){return Math.ceil(t/e*100)}}class iB{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
12868
+ for(const n of this.dies)this.isDieVisible(n,r,s)&&i.fillText(n.text,n.x+e/2,n.y+t/2+o.width/2,e-e/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}isDieVisible(e,t,n){return e.x>=t[0]&&e.x<n[0]&&e.y>=t[1]&&e.y<n[1]}}class iB{constructor(e){this.wafermap=e,this.zoomTransform=FV,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100}createZoomBehavior(){this.zoomBehavior=KV().scaleExtent([1.1,this.getZoomMax(this.wafermap.canvasWidth*this.wafermap.canvasHeight,this.wafermap.dataManager.containerDimensions.width*this.wafermap.dataManager.containerDimensions.height)]).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth+this.extentPadding,this.wafermap.canvasHeight+this.extentPadding]]).filter((e=>VV(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)})),this.zoomBehavior(ML(this.wafermap.canvas))}rescale(e){const t=e.transform
12869
+ t.k===this.minScale?(this.zoomTransform=FV,this.zoomBehavior.transform(ML(this.wafermap.canvas),FV)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}getZoomMax(e,t){return Math.ceil(t/e*100)}}class oB{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
12869
12870
  if(!this.hoversOverDie(this.wafermap,t))return void(this.wafermap.hoverDie=void 0)
12870
12871
  const n=this.wafermap.transform.invert([t.x,t.y]),i=this.calculateDieCoordinates(this.wafermap,{x:n[0],y:n[1]})
12871
- this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(i)}mouseout(){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e,t){const n=e.originLocation,i=n===jH||n===WH?Math.floor:Math.ceil,o=n===jH||n===UH?Math.floor:Math.ceil
12872
+ this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(i)}mouseout(){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e,t){const n=e.originLocation,i=n===UH||n===ZH?Math.floor:Math.ceil,o=n===UH||n===WH?Math.floor:Math.ceil
12872
12873
  return{x:i(e.dataManager.invertedHorizontalScale(t.x-e.dataManager.margin.left)),y:o(e.dataManager.invertedVerticalScale(t.y-e.dataManager.margin.top))}}hoversOverDie(e,t){const n=e.canvasContext.getImageData(t.x,t.y,1,1).data
12873
12874
  let i=0
12874
12875
  for(const e of n)i+=e
12875
- return i>0}}class oB{constructor(e){this.wafermap=e,this.onWheelMove=e=>{e.preventDefault()},this.onMouseMove=e=>{this.hoverHandler.mousemove(e)},this.onMouseOut=()=>{this.hoverHandler.mouseout()},this.zoomHandler=new nB(e),this.hoverHandler=new iB(e)}attachEvents(){this.zoomHandler.createZoomBehavior(),this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.addEventListener("wheel",this.onWheelMove,{passive:!1})}detachEvents(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.removeEventListener("wheel",this.onWheelMove)}}const rB=["highlightedTags","canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
12876
- class sB extends nI{constructor(e){super(rB),this.wafermap=e,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}))))}}class aB{constructor(e){this.wafermap=e,this.invalidGridDimensions=!1}getValidity(){return{invalidGridDimensions:this.invalidGridDimensions}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}validateGridDimensions(){return this.invalidGridDimensions=!1,void 0===this.wafermap.gridMinX&&void 0===this.wafermap.gridMaxX&&void 0===this.wafermap.gridMinY&&void 0===this.wafermap.gridMaxY?this.invalidGridDimensions=!1:("number"!=typeof this.wafermap.gridMinX||"number"!=typeof this.wafermap.gridMaxX||"number"!=typeof this.wafermap.gridMinY||"number"!=typeof this.wafermap.gridMaxY||this.wafermap.gridMaxX<this.wafermap.gridMinX||this.wafermap.gridMaxY<this.wafermap.gridMinY)&&(this.invalidGridDimensions=!0),!this.invalidGridDimensions}}class lB extends Lt{constructor(){super(...arguments),this.waferMapUpdateTracker=new sB(this),this.originLocation=jH,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=ZH,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=JH,this.dataManager=new eB(this),this.renderer=new tB(this),this.renderQueued=!1,this.transform=LV,this.hoverTransform="",this.hoverOpacity=KH,this.hoverWidth=0,this.hoverHeight=0,this.highlightedTags=[],this.dies=[],this.colorScale={colors:[],values:[]},this.eventCoordinator=new oB(this),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new aB(this)}get validity(){return this.waferMapValidator.getValidity()}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.resizeObserver.observe(this),this.waferMapUpdateTracker.trackAll()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}update(){this.waferMapUpdateTracker.requiresEventsUpdate?(this.eventCoordinator.detachEvents(),this.waferMapValidator.validateGridDimensions(),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.eventCoordinator.attachEvents()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.renderer.renderHover()}createResizeObserver(){return new ResizeObserver((e=>{const t=e[0]
12876
+ return i>0}}class rB{constructor(e){this.wafermap=e,this.onWheelMove=e=>{e.preventDefault()},this.onMouseMove=e=>{this.hoverHandler.mousemove(e)},this.onMouseOut=()=>{this.hoverHandler.mouseout()},this.zoomHandler=new iB(e),this.hoverHandler=new oB(e)}attachEvents(){this.zoomHandler.createZoomBehavior(),this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.addEventListener("wheel",this.onWheelMove,{passive:!1})}detachEvents(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.removeEventListener("wheel",this.onWheelMove)}}const sB=["highlightedTags","canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
12877
+ class aB extends nI{constructor(e){super(sB),this.wafermap=e,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}))))}}class lB{constructor(e){this.wafermap=e,this.invalidGridDimensions=!1}getValidity(){return{invalidGridDimensions:this.invalidGridDimensions}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}validateGridDimensions(){return this.invalidGridDimensions=!1,void 0===this.wafermap.gridMinX&&void 0===this.wafermap.gridMaxX&&void 0===this.wafermap.gridMinY&&void 0===this.wafermap.gridMaxY?this.invalidGridDimensions=!1:("number"!=typeof this.wafermap.gridMinX||"number"!=typeof this.wafermap.gridMaxX||"number"!=typeof this.wafermap.gridMinY||"number"!=typeof this.wafermap.gridMaxY||this.wafermap.gridMaxX<this.wafermap.gridMinX||this.wafermap.gridMaxY<this.wafermap.gridMinY)&&(this.invalidGridDimensions=!0),!this.invalidGridDimensions}}class cB extends Lt{constructor(){super(...arguments),this.waferMapUpdateTracker=new aB(this),this.originLocation=UH,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=GH,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=XH,this.dataManager=new tB(this),this.renderer=new nB(this),this.renderQueued=!1,this.transform=FV,this.hoverTransform="",this.hoverOpacity=JH,this.hoverWidth=0,this.hoverHeight=0,this.highlightedTags=[],this.dies=[],this.colorScale={colors:[],values:[]},this.eventCoordinator=new rB(this),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new lB(this)}get validity(){return this.waferMapValidator.getValidity()}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.resizeObserver.observe(this),this.waferMapUpdateTracker.trackAll()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}update(){this.waferMapUpdateTracker.requiresEventsUpdate?(this.eventCoordinator.detachEvents(),this.waferMapValidator.validateGridDimensions(),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.eventCoordinator.attachEvents()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.renderer.renderHover()}createResizeObserver(){return new ResizeObserver((e=>{const t=e[0]
12877
12878
  if(void 0===t)return
12878
12879
  const{height:n,width:i}=t.contentRect
12879
- 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()}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()}}e([se({attribute:"origin-location"})],lB.prototype,"originLocation",void 0),e([se({attribute:"grid-min-x",converter:oe})],lB.prototype,"gridMinX",void 0),e([se({attribute:"grid-max-x",converter:oe})],lB.prototype,"gridMaxX",void 0),e([se({attribute:"grid-min-y",converter:oe})],lB.prototype,"gridMinY",void 0),e([se({attribute:"grid-max-y",converter:oe})],lB.prototype,"gridMaxY",void 0),e([se],lB.prototype,"orientation",void 0),e([se({attribute:"max-characters",converter:oe})],lB.prototype,"maxCharacters",void 0),e([se({attribute:"die-labels-hidden",mode:"boolean"})],lB.prototype,"dieLabelsHidden",void 0),e([se({attribute:"die-labels-suffix"})],lB.prototype,"dieLabelsSuffix",void 0),e([se({attribute:"color-scale-mode"})],lB.prototype,"colorScaleMode",void 0),e([g],lB.prototype,"canvasWidth",void 0),e([g],lB.prototype,"canvasHeight",void 0),e([g],lB.prototype,"transform",void 0),e([g],lB.prototype,"hoverTransform",void 0),e([g],lB.prototype,"hoverOpacity",void 0),e([g],lB.prototype,"hoverWidth",void 0),e([g],lB.prototype,"hoverHeight",void 0),e([g],lB.prototype,"hoverDie",void 0),e([g],lB.prototype,"highlightedTags",void 0),e([g],lB.prototype,"dies",void 0),e([g],lB.prototype,"colorScale",void 0)
12880
- const cB=lB.compose({baseName:"wafer-map",template:KV,styles:JV})
12881
- bi.getOrCreate().withPrefix("nimble").register(cB())}()
12880
+ 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()}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()}}e([se({attribute:"origin-location"})],cB.prototype,"originLocation",void 0),e([se({attribute:"grid-min-x",converter:oe})],cB.prototype,"gridMinX",void 0),e([se({attribute:"grid-max-x",converter:oe})],cB.prototype,"gridMaxX",void 0),e([se({attribute:"grid-min-y",converter:oe})],cB.prototype,"gridMinY",void 0),e([se({attribute:"grid-max-y",converter:oe})],cB.prototype,"gridMaxY",void 0),e([se],cB.prototype,"orientation",void 0),e([se({attribute:"max-characters",converter:oe})],cB.prototype,"maxCharacters",void 0),e([se({attribute:"die-labels-hidden",mode:"boolean"})],cB.prototype,"dieLabelsHidden",void 0),e([se({attribute:"die-labels-suffix"})],cB.prototype,"dieLabelsSuffix",void 0),e([se({attribute:"color-scale-mode"})],cB.prototype,"colorScaleMode",void 0),e([g],cB.prototype,"canvasWidth",void 0),e([g],cB.prototype,"canvasHeight",void 0),e([g],cB.prototype,"transform",void 0),e([g],cB.prototype,"hoverTransform",void 0),e([g],cB.prototype,"hoverOpacity",void 0),e([g],cB.prototype,"hoverWidth",void 0),e([g],cB.prototype,"hoverHeight",void 0),e([g],cB.prototype,"hoverDie",void 0),e([g],cB.prototype,"highlightedTags",void 0),e([g],cB.prototype,"dies",void 0),e([g],cB.prototype,"colorScale",void 0)
12881
+ const dB=cB.compose({baseName:"wafer-map",template:JV,styles:XV})
12882
+ bi.getOrCreate().withPrefix("nimble").register(dB())}()
12882
12883
  //# sourceMappingURL=all-components-bundle.min.js.map