@ni/nimble-components 20.1.15 → 20.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/all-components-bundle.js +24 -15
  2. package/dist/all-components-bundle.js.map +1 -1
  3. package/dist/all-components-bundle.min.js +369 -368
  4. package/dist/all-components-bundle.min.js.map +1 -1
  5. package/dist/esm/docs/types.d.ts +6 -0
  6. package/dist/esm/src/table-column/base/models/column-validator.d.ts +0 -4
  7. package/dist/esm/src/table-column/date-text/index.d.ts +2 -2
  8. package/dist/esm/src/table-column/number-text/index.d.ts +7 -0
  9. package/dist/esm/src/table-column/number-text/models/decimal-formatter.d.ts +9 -0
  10. package/dist/esm/src/table-column/number-text/models/table-column-number-text-validitor.d.ts +13 -0
  11. package/dist/esm/src/table-column/number-text/types.d.ts +1 -0
  12. package/dist/esm/table-column/base/models/column-validator.d.ts +0 -4
  13. package/dist/esm/table-column/base/models/column-validator.js +0 -6
  14. package/dist/esm/table-column/base/models/column-validator.js.map +1 -1
  15. package/dist/esm/table-column/date-text/cell-view/index.js +1 -1
  16. package/dist/esm/table-column/date-text/cell-view/index.js.map +1 -1
  17. package/dist/esm/table-column/date-text/group-header-view/index.js +1 -1
  18. package/dist/esm/table-column/date-text/group-header-view/index.js.map +1 -1
  19. package/dist/esm/table-column/date-text/index.d.ts +2 -2
  20. package/dist/esm/table-column/date-text/index.js +14 -6
  21. package/dist/esm/table-column/date-text/index.js.map +1 -1
  22. package/dist/esm/table-column/number-text/index.d.ts +7 -0
  23. package/dist/esm/table-column/number-text/index.js +33 -7
  24. package/dist/esm/table-column/number-text/index.js.map +1 -1
  25. package/dist/esm/table-column/number-text/models/decimal-formatter.d.ts +9 -0
  26. package/dist/esm/table-column/number-text/models/decimal-formatter.js +21 -0
  27. package/dist/esm/table-column/number-text/models/decimal-formatter.js.map +1 -0
  28. package/dist/esm/table-column/number-text/models/table-column-number-text-validitor.d.ts +13 -0
  29. package/dist/esm/table-column/number-text/models/table-column-number-text-validitor.js +28 -0
  30. package/dist/esm/table-column/number-text/models/table-column-number-text-validitor.js.map +1 -0
  31. package/dist/esm/table-column/number-text/types.d.ts +1 -0
  32. package/dist/esm/table-column/number-text/types.js +2 -1
  33. package/dist/esm/table-column/number-text/types.js.map +1 -1
  34. package/package.json +1 -1
@@ -9731,7 +9731,7 @@ const tD=eD.compose({baseName:"table-column-anchor",template:LR,styles:zR})
9731
9731
  mi.getOrCreate().withPrefix("nimble").register(tD()),mi.tagFor(eD)
9732
9732
  class nD extends(BR(HR(VT))){fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}}function iD(e,t){if("number"!=typeof t)return""
9733
9733
  try{return e.format(t)}catch(e){return""}}e([se({attribute:"field-name"})],nD.prototype,"fieldName",void 0)
9734
- class oD extends GR{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){this.columnConfig?.formatter?this.text=iD(this.columnConfig.formatter,this.groupHeaderValue):this.text=""}}const rD=oD.compose({baseName:"table-column-date-text-group-header-view",template:KR,styles:JR})
9734
+ class oD extends GR{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){this.columnConfig?this.text=iD(this.columnConfig.formatter,this.groupHeaderValue):this.text=""}}const rD=oD.compose({baseName:"table-column-date-text-group-header-view",template:KR,styles:JR})
9735
9735
  mi.getOrCreate().withPrefix("nimble").register(rD())
9736
9736
  const sD=mi.tagFor(oD),aD="left",lD="right",cD=W`
9737
9737
  <template
@@ -9758,59 +9758,60 @@ const sD=mi.tagFor(oD),aD="left",lD="right",cD=W`
9758
9758
  }
9759
9759
  `
9760
9760
  class hD extends NT{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.alignment=aD}}e([m],hD.prototype,"hasOverflow",void 0),e([m],hD.prototype,"text",void 0),e([m],hD.prototype,"alignment",void 0)
9761
- class uD extends hD{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){this.columnConfig?.formatter?this.text=iD(this.columnConfig.formatter,this.cellRecord?.value):this.text=""}}const pD=uD.compose({baseName:"table-column-date-text-cell-view",template:cD,styles:dD})
9761
+ class uD extends hD{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){this.columnConfig?this.text=iD(this.columnConfig.formatter,this.cellRecord?.value):this.text=""}}const pD=uD.compose({baseName:"table-column-date-text-cell-view",template:cD,styles:dD})
9762
9762
  mi.getOrCreate().withPrefix("nimble").register(pD())
9763
- const fD=mi.tagFor(uD)
9764
- class gD extends SR{isValid(){return this.noneTracked()}getValidationFlags(){return this.getTrackedItems()}}class mD extends gD{constructor(e,t){super(t),this.columnInternals=e}isValidColumn(){return this.isValid()}getValidity(){return this.getValidationFlags()}setConditionValue(e,t){t?this.track(e):this.untrack(e),this.updateColumnInternalsFlag()}updateColumnInternalsFlag(){this.columnInternals.validConfiguration=this.isValid()}}const vD=["invalidCustomOptionsCombination"]
9765
- class bD extends mD{constructor(e){super(e,vD)}setCustomOptionsValidity(e){this.setConditionValue("invalidCustomOptionsCombination",!e)}}const wD={toView:e=>"boolean"==typeof e?e.toString():null,fromView:e=>"true"===e||!0===e||"false"!==e&&!1!==e&&void 0}
9766
- class yD extends nD{constructor(){super(...arguments),this.validator=new bD(this.columnInternals)}connectedCallback(){super.connectedCallback(),this.updateColumnConfig()}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:fD,groupHeaderViewTag:sD,delegatedEvents:[],sortOperation:TT}}formatChanged(){this.updateColumnConfig()}customLocaleMatcherChanged(){this.updateColumnConfig()}customWeekdayChanged(){this.updateColumnConfig()}customEraChanged(){this.updateColumnConfig()}customYearChanged(){this.updateColumnConfig()}customMonthChanged(){this.updateColumnConfig()}customDayChanged(){this.updateColumnConfig()}customHourChanged(){this.updateColumnConfig()}customMinuteChanged(){this.updateColumnConfig()}customSecondChanged(){this.updateColumnConfig()}customTimeZoneNameChanged(){this.updateColumnConfig()}customFormatMatcherChanged(){this.updateColumnConfig()}customHour12Changed(){this.updateColumnConfig()}customTimeZoneChanged(){this.updateColumnConfig()}customCalendarChanged(){this.updateColumnConfig()}customDayPeriodChanged(){this.updateColumnConfig()}customNumberingSystemChanged(){this.updateColumnConfig()}customDateStyleChanged(){this.updateColumnConfig()}customTimeStyleChanged(){this.updateColumnConfig()}customHourCycleChanged(){this.updateColumnConfig()}updateColumnConfig(){const e={formatter:this.createFormatter()}
9767
- this.columnInternals.columnConfig=e,this.validator.setCustomOptionsValidity(void 0!==e.formatter)}createFormatter(){let e
9768
- e=this.format?this.getCustomFormattingOptions():{dateStyle:"medium",timeStyle:"medium"}
9769
- try{return new Intl.DateTimeFormat(void 0,e)}catch(e){return}}getCustomFormattingOptions(){return{localeMatcher:this.customLocaleMatcher??void 0,weekday:this.customWeekday??void 0,era:this.customEra??void 0,year:this.customYear??void 0,month:this.customMonth??void 0,day:this.customDay??void 0,hour:this.customHour??void 0,minute:this.customMinute??void 0,second:this.customSecond??void 0,timeZoneName:this.customTimeZoneName??void 0,formatMatcher:this.customFormatMatcher??void 0,hour12:this.customHour12??void 0,timeZone:this.customTimeZone??void 0,calendar:this.customCalendar??void 0,dayPeriod:this.customDayPeriod??void 0,numberingSystem:this.customNumberingSystem??void 0,dateStyle:this.customDateStyle??void 0,timeStyle:this.customTimeStyle??void 0,hourCycle:this.customHourCycle??void 0}}}e([se],yD.prototype,"format",void 0),e([se({attribute:"custom-locale-matcher"})],yD.prototype,"customLocaleMatcher",void 0),e([se({attribute:"custom-weekday"})],yD.prototype,"customWeekday",void 0),e([se({attribute:"custom-era"})],yD.prototype,"customEra",void 0),e([se({attribute:"custom-year"})],yD.prototype,"customYear",void 0),e([se({attribute:"custom-month"})],yD.prototype,"customMonth",void 0),e([se({attribute:"custom-day"})],yD.prototype,"customDay",void 0),e([se({attribute:"custom-hour"})],yD.prototype,"customHour",void 0),e([se({attribute:"custom-minute"})],yD.prototype,"customMinute",void 0),e([se({attribute:"custom-second"})],yD.prototype,"customSecond",void 0),e([se({attribute:"custom-time-zone-name"})],yD.prototype,"customTimeZoneName",void 0),e([se({attribute:"custom-format-matcher"})],yD.prototype,"customFormatMatcher",void 0),e([se({attribute:"custom-hour12",converter:wD})],yD.prototype,"customHour12",void 0),e([se({attribute:"custom-time-zone"})],yD.prototype,"customTimeZone",void 0),e([se({attribute:"custom-calendar"})],yD.prototype,"customCalendar",void 0),e([se({attribute:"custom-day-period"})],yD.prototype,"customDayPeriod",void 0),e([se({attribute:"custom-numbering-system"})],yD.prototype,"customNumberingSystem",void 0),e([se({attribute:"custom-date-style"})],yD.prototype,"customDateStyle",void 0),e([se({attribute:"custom-time-style"})],yD.prototype,"customTimeStyle",void 0),e([se({attribute:"custom-hour-cycle"})],yD.prototype,"customHourCycle",void 0)
9770
- const xD=yD.compose({baseName:"table-column-date-text",template:LR,styles:zR})
9771
- mi.getOrCreate().withPrefix("nimble").register(xD()),mi.tagFor(yD)
9772
- const kD=(e,t)=>{if("number"===t){const t=oe.fromView(e)
9763
+ const fD=mi.tagFor(uD),gD=void 0
9764
+ class mD extends SR{isValid(){return this.noneTracked()}getValidationFlags(){return this.getTrackedItems()}}class vD extends mD{constructor(e,t){super(t),this.columnInternals=e}getValidity(){return this.getValidationFlags()}setConditionValue(e,t){t?this.track(e):this.untrack(e),this.updateColumnInternalsFlag()}updateColumnInternalsFlag(){this.columnInternals.validConfiguration=this.isValid()}}const bD=["invalidCustomOptionsCombination"]
9765
+ class wD extends vD{constructor(e){super(e,bD)}setCustomOptionsValidity(e){this.setConditionValue("invalidCustomOptionsCombination",!e)}}const yD={toView:e=>"boolean"==typeof e?e.toString():null,fromView:e=>"true"===e||!0===e||"false"!==e&&!1!==e&&void 0}
9766
+ class xD extends nD{constructor(){super(...arguments),this.validator=new wD(this.columnInternals)}connectedCallback(){super.connectedCallback(),this.updateColumnConfig()}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:fD,groupHeaderViewTag:sD,delegatedEvents:[],sortOperation:TT}}formatChanged(){this.updateColumnConfig()}customLocaleMatcherChanged(){this.updateColumnConfig()}customWeekdayChanged(){this.updateColumnConfig()}customEraChanged(){this.updateColumnConfig()}customYearChanged(){this.updateColumnConfig()}customMonthChanged(){this.updateColumnConfig()}customDayChanged(){this.updateColumnConfig()}customHourChanged(){this.updateColumnConfig()}customMinuteChanged(){this.updateColumnConfig()}customSecondChanged(){this.updateColumnConfig()}customTimeZoneNameChanged(){this.updateColumnConfig()}customFormatMatcherChanged(){this.updateColumnConfig()}customHour12Changed(){this.updateColumnConfig()}customTimeZoneChanged(){this.updateColumnConfig()}customCalendarChanged(){this.updateColumnConfig()}customDayPeriodChanged(){this.updateColumnConfig()}customNumberingSystemChanged(){this.updateColumnConfig()}customDateStyleChanged(){this.updateColumnConfig()}customTimeStyleChanged(){this.updateColumnConfig()}customHourCycleChanged(){this.updateColumnConfig()}updateColumnConfig(){const e=this.createFormatter()
9767
+ if(e){const t={formatter:e}
9768
+ this.columnInternals.columnConfig=t,this.validator.setCustomOptionsValidity(!0)}else this.columnInternals.columnConfig=void 0,this.validator.setCustomOptionsValidity(!1)}createFormatter(){let e
9769
+ e=this.format===gD?{dateStyle:"medium",timeStyle:"medium"}:this.getCustomFormattingOptions()
9770
+ try{return new Intl.DateTimeFormat(void 0,e)}catch(e){return}}getCustomFormattingOptions(){return{localeMatcher:this.customLocaleMatcher??void 0,weekday:this.customWeekday??void 0,era:this.customEra??void 0,year:this.customYear??void 0,month:this.customMonth??void 0,day:this.customDay??void 0,hour:this.customHour??void 0,minute:this.customMinute??void 0,second:this.customSecond??void 0,timeZoneName:this.customTimeZoneName??void 0,formatMatcher:this.customFormatMatcher??void 0,hour12:this.customHour12??void 0,timeZone:this.customTimeZone??void 0,calendar:this.customCalendar??void 0,dayPeriod:this.customDayPeriod??void 0,numberingSystem:this.customNumberingSystem??void 0,dateStyle:this.customDateStyle??void 0,timeStyle:this.customTimeStyle??void 0,hourCycle:this.customHourCycle??void 0}}}e([se],xD.prototype,"format",void 0),e([se({attribute:"custom-locale-matcher"})],xD.prototype,"customLocaleMatcher",void 0),e([se({attribute:"custom-weekday"})],xD.prototype,"customWeekday",void 0),e([se({attribute:"custom-era"})],xD.prototype,"customEra",void 0),e([se({attribute:"custom-year"})],xD.prototype,"customYear",void 0),e([se({attribute:"custom-month"})],xD.prototype,"customMonth",void 0),e([se({attribute:"custom-day"})],xD.prototype,"customDay",void 0),e([se({attribute:"custom-hour"})],xD.prototype,"customHour",void 0),e([se({attribute:"custom-minute"})],xD.prototype,"customMinute",void 0),e([se({attribute:"custom-second"})],xD.prototype,"customSecond",void 0),e([se({attribute:"custom-time-zone-name"})],xD.prototype,"customTimeZoneName",void 0),e([se({attribute:"custom-format-matcher"})],xD.prototype,"customFormatMatcher",void 0),e([se({attribute:"custom-hour12",converter:yD})],xD.prototype,"customHour12",void 0),e([se({attribute:"custom-time-zone"})],xD.prototype,"customTimeZone",void 0),e([se({attribute:"custom-calendar"})],xD.prototype,"customCalendar",void 0),e([se({attribute:"custom-day-period"})],xD.prototype,"customDayPeriod",void 0),e([se({attribute:"custom-numbering-system"})],xD.prototype,"customNumberingSystem",void 0),e([se({attribute:"custom-date-style"})],xD.prototype,"customDateStyle",void 0),e([se({attribute:"custom-time-style"})],xD.prototype,"customTimeStyle",void 0),e([se({attribute:"custom-hour-cycle"})],xD.prototype,"customHourCycle",void 0)
9771
+ const kD=xD.compose({baseName:"table-column-date-text",template:LR,styles:zR})
9772
+ mi.getOrCreate().withPrefix("nimble").register(kD()),mi.tagFor(xD)
9773
+ const CD=(e,t)=>{if("number"===t){const t=oe.fromView(e)
9773
9774
  return null===t?void 0:t}return"boolean"===t?!1!==e&&"false"!==e&&(!0===e||"true"===e||void 0):e?.toString()??void 0}
9774
- class CD extends VT{constructor(){super(...arguments),this.validator=this.createValidator(),this.mappingNotifiers=[],this.mappings=[],this.keyType="string"}handleChange(e,t){e instanceof Eb&&"string"==typeof t&&this.updateColumnConfig()}updateColumnConfig(){this.validator.validate(this.mappings,this.keyType),this.columnInternals.columnConfig=this.validator.isValid()?this.createColumnConfig(this.getMappingConfigs()):void 0}getMappingConfigs(){const e=new Map
9775
- return this.mappings.forEach((t=>{const n=kD(t.key,this.keyType)
9775
+ class SD extends VT{constructor(){super(...arguments),this.validator=this.createValidator(),this.mappingNotifiers=[],this.mappings=[],this.keyType="string"}handleChange(e,t){e instanceof Eb&&"string"==typeof t&&this.updateColumnConfig()}updateColumnConfig(){this.validator.validate(this.mappings,this.keyType),this.columnInternals.columnConfig=this.validator.isValid()?this.createColumnConfig(this.getMappingConfigs()):void 0}getMappingConfigs(){const e=new Map
9776
+ return this.mappings.forEach((t=>{const n=CD(t.key,this.keyType)
9776
9777
  if(void 0===n)throw Error("Key was invalid for type. Validation should have prevented this.")
9777
9778
  const i=this.createMappingConfig(t)
9778
9779
  e.set(n,i)})),e}fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}mappingsChanged(){this.updateColumnConfig(),this.observeMappings()}keyTypeChanged(){this.updateColumnConfig()}removeMappingObservers(){this.mappingNotifiers.forEach((e=>{e.unsubscribe(this)})),this.mappingNotifiers=[]}observeMappings(){this.removeMappingObservers()
9779
9780
  for(const e of this.mappings){const t=g.getNotifier(e)
9780
- t.subscribe(this),this.mappingNotifiers.push(t)}}}e([m],CD.prototype,"mappings",void 0),e([se({attribute:"field-name"})],CD.prototype,"fieldName",void 0),e([se({attribute:"key-type"})],CD.prototype,"keyType",void 0)
9781
- const SD=we`
9781
+ t.subscribe(this),this.mappingNotifiers.push(t)}}}e([m],SD.prototype,"mappings",void 0),e([se({attribute:"field-name"})],SD.prototype,"fieldName",void 0),e([se({attribute:"key-type"})],SD.prototype,"keyType",void 0)
9782
+ const $D=we`
9782
9783
  ${zR}
9783
9784
 
9784
9785
  slot[name='mapping'] {
9785
9786
  display: none;
9786
9787
  }
9787
- `,$D=W`${LR}<slot ${Ge("mappings")} name="mapping"></slot>`,_D=["invalidMappingKeyValueForType","unsupportedMappingType","duplicateMappingKey","missingKeyValue","missingTextValue"]
9788
- class MD extends mD{constructor(e,t,n){super(e,t),this.supportedMappingElements=n}validate(e,t){this.untrackAll()
9788
+ `,_D=W`${LR}<slot ${Ge("mappings")} name="mapping"></slot>`,MD=["invalidMappingKeyValueForType","unsupportedMappingType","duplicateMappingKey","missingKeyValue","missingTextValue"]
9789
+ class AD extends vD{constructor(e,t,n){super(e,t),this.supportedMappingElements=n}validate(e,t){this.untrackAll()
9789
9790
  const n=e.map((e=>e.key))
9790
- this.validateKeyValuesForType(n,t),this.validateMappingTypes(e),this.validateUniqueKeys(n,t),this.validateNoMissingKeys(e),this.validateNoMissingText(e)}validateKeyValuesForType(e,t){const n=e.some((e=>void 0!==e&&void 0===kD(e,t)))
9791
+ this.validateKeyValuesForType(n,t),this.validateMappingTypes(e),this.validateUniqueKeys(n,t),this.validateNoMissingKeys(e),this.validateNoMissingText(e)}validateKeyValuesForType(e,t){const n=e.some((e=>void 0!==e&&void 0===CD(e,t)))
9791
9792
  this.setConditionValue("invalidMappingKeyValueForType",n)}validateMappingTypes(e){const t=e.every((e=>this.supportedMappingElements.some((t=>e instanceof t))))
9792
- this.setConditionValue("unsupportedMappingType",!t)}validateUniqueKeys(e,t){const n=e.map((e=>kD(e,t))),i=new Set(n).size!==n.length
9793
+ this.setConditionValue("unsupportedMappingType",!t)}validateUniqueKeys(e,t){const n=e.map((e=>CD(e,t))),i=new Set(n).size!==n.length
9793
9794
  this.setConditionValue("duplicateMappingKey",i)}validateNoMissingKeys(e){const t=e.some((e=>void 0===e.key))
9794
9795
  this.setConditionValue("missingKeyValue",t)}validateNoMissingText(e){const t=e.some((e=>void 0===e.text))
9795
- this.setConditionValue("missingTextValue",t)}}const AD=[..._D]
9796
- class ID extends MD{constructor(e){super(e,AD,[Tb])}}class ED{constructor(e){this.text=e}}class OD extends ED{}class TD extends hD{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){const e=this.cellRecord?.value
9796
+ this.setConditionValue("missingTextValue",t)}}const ID=[...MD]
9797
+ class ED extends AD{constructor(e){super(e,ID,[Tb])}}class OD{constructor(e){this.text=e}}class TD extends OD{}class RD extends hD{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){const e=this.cellRecord?.value
9797
9798
  if(null==e)return void(this.text="")
9798
9799
  const t=this.columnConfig?.mappingConfigs.get(e)
9799
- this.text=t instanceof OD&&t.text?t.text:""}}const RD=TD.compose({baseName:"table-column-enum-text-cell-view",template:cD,styles:dD})
9800
- mi.getOrCreate().withPrefix("nimble").register(RD())
9801
- const DD=mi.tagFor(TD)
9802
- class FD extends GR{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){const e=this.groupHeaderValue
9800
+ this.text=t instanceof TD&&t.text?t.text:""}}const DD=RD.compose({baseName:"table-column-enum-text-cell-view",template:cD,styles:dD})
9801
+ mi.getOrCreate().withPrefix("nimble").register(DD())
9802
+ const FD=mi.tagFor(RD)
9803
+ class ND extends GR{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){const e=this.groupHeaderValue
9803
9804
  if(null==e)return void(this.text="")
9804
9805
  const t=this.columnConfig?.mappingConfigs.get(e)
9805
- this.text=t instanceof OD&&t.text?t.text:""}}const ND=FD.compose({baseName:"table-column-enum-text-group-header-view",template:KR,styles:JR})
9806
- mi.getOrCreate().withPrefix("nimble").register(ND())
9807
- const zD=mi.tagFor(FD)
9808
- class PD extends(BR(HR(CD))){createValidator(){return new ID(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:DD,groupHeaderViewTag:zD,delegatedEvents:[],sortOperation:TT}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof Tb)return new OD(e.text)
9809
- throw new Error("Unsupported mapping")}}const VD=PD.compose({baseName:"table-column-enum-text",template:$D,styles:SD})
9810
- mi.getOrCreate().withPrefix("nimble").register(VD()),mi.tagFor(PD)
9811
- const LD=[..._D,"invalidIconName"]
9812
- class HD extends MD{constructor(e){super(e,LD,[Fb,zb])}validate(e,t){super.validate(e,t),this.validateIconNames(e)}validateIconNames(e){const t=e.filter((e=>e instanceof Fb)).some((e=>void 0===e.resolvedIcon))
9813
- this.setConditionValue("invalidIconName",t)}}const BD=we`
9806
+ this.text=t instanceof TD&&t.text?t.text:""}}const zD=ND.compose({baseName:"table-column-enum-text-group-header-view",template:KR,styles:JR})
9807
+ mi.getOrCreate().withPrefix("nimble").register(zD())
9808
+ const PD=mi.tagFor(ND)
9809
+ class VD extends(BR(HR(SD))){createValidator(){return new ED(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:FD,groupHeaderViewTag:PD,delegatedEvents:[],sortOperation:TT}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof Tb)return new TD(e.text)
9810
+ throw new Error("Unsupported mapping")}}const LD=VD.compose({baseName:"table-column-enum-text",template:_D,styles:$D})
9811
+ mi.getOrCreate().withPrefix("nimble").register(LD()),mi.tagFor(VD)
9812
+ const HD=[...MD,"invalidIconName"]
9813
+ class BD extends AD{constructor(e){super(e,HD,[Fb,zb])}validate(e,t){super.validate(e,t),this.validateIconNames(e)}validateIconNames(e){const t=e.filter((e=>e instanceof Fb)).some((e=>void 0===e.resolvedIcon))
9814
+ this.setConditionValue("invalidIconName",t)}}const qD=we`
9814
9815
  ${Io("inline-flex")}
9815
9816
 
9816
9817
  :host {
@@ -9830,7 +9831,7 @@ this.setConditionValue("invalidIconName",t)}}const BD=we`
9830
9831
  overflow: hidden;
9831
9832
  text-overflow: ellipsis;
9832
9833
  }
9833
- `,qD=W`
9834
+ `,ZD=W`
9834
9835
  ${Pe((e=>"icon"===e.visual),W`
9835
9836
  ${e=>e.iconTemplate}
9836
9837
  <span
@@ -9849,7 +9850,7 @@ this.setConditionValue("invalidIconName",t)}}const BD=we`
9849
9850
  >${e=>e.text}</span>
9850
9851
  `)}
9851
9852
  `
9852
- class ZD extends ED{constructor(e,t,n){var i
9853
+ class jD extends OD{constructor(e,t,n){var i
9853
9854
  super(n),this.severity=t,this.iconTemplate=W`
9854
9855
  <${i=e}
9855
9856
  title="${e=>e.text}"
@@ -9857,14 +9858,14 @@ super(n),this.severity=t,this.iconTemplate=W`
9857
9858
  severity="${e=>e.severity}"
9858
9859
  class="no-shrink"
9859
9860
  >
9860
- </${i}>`}}class jD extends ED{constructor(e){super(e)}}class UD extends GR{columnConfigChanged(){this.updateState()}groupHeaderValueChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig)return
9861
+ </${i}>`}}class UD extends OD{constructor(e){super(e)}}class WD extends GR{columnConfigChanged(){this.updateState()}groupHeaderValueChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig)return
9861
9862
  const e=this.groupHeaderValue
9862
9863
  if(null==e)return
9863
9864
  const t=this.columnConfig.mappingConfigs.get(e)
9864
- t instanceof ZD?(this.visual="icon",this.severity=t.severity,this.text=t.text??"",this.iconTemplate=t.iconTemplate):t instanceof jD&&(this.visual="spinner",this.text=t.text??"")}}e([m],UD.prototype,"severity",void 0),e([m],UD.prototype,"iconTemplate",void 0),e([m],UD.prototype,"visual",void 0)
9865
- const WD=UD.compose({baseName:"table-column-icon-group-header-view",template:qD,styles:BD})
9866
- mi.getOrCreate().withPrefix("nimble").register(WD())
9867
- const GD=mi.tagFor(UD),KD=W`
9865
+ t instanceof jD?(this.visual="icon",this.severity=t.severity,this.text=t.text??"",this.iconTemplate=t.iconTemplate):t instanceof UD&&(this.visual="spinner",this.text=t.text??"")}}e([m],WD.prototype,"severity",void 0),e([m],WD.prototype,"iconTemplate",void 0),e([m],WD.prototype,"visual",void 0)
9866
+ const GD=WD.compose({baseName:"table-column-icon-group-header-view",template:ZD,styles:qD})
9867
+ mi.getOrCreate().withPrefix("nimble").register(GD())
9868
+ const KD=mi.tagFor(WD),JD=W`
9868
9869
  ${Pe((e=>"icon"===e.visual),(e=>e.iconTemplate))}
9869
9870
  ${Pe((e=>"spinner"===e.visual),W`
9870
9871
  <${CO}
@@ -9874,24 +9875,24 @@ const GD=mi.tagFor(UD),KD=W`
9874
9875
  </${CO}>
9875
9876
  `)}
9876
9877
  `
9877
- class JD extends NT{columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig||!this.cellRecord)return
9878
+ class XD extends NT{columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig||!this.cellRecord)return
9878
9879
  const e=this.cellRecord.value
9879
9880
  if(null==e)return
9880
9881
  const t=this.columnConfig.mappingConfigs.get(e)
9881
- t instanceof ZD?(this.visual="icon",this.severity=t.severity,this.text=t.text,this.iconTemplate=t.iconTemplate):t instanceof jD&&(this.visual="spinner",this.text=t.text)}}e([m],JD.prototype,"severity",void 0),e([m],JD.prototype,"text",void 0),e([m],JD.prototype,"iconTemplate",void 0),e([m],JD.prototype,"visual",void 0)
9882
- const XD=JD.compose({baseName:"table-column-icon-cell-view",template:KD})
9883
- mi.getOrCreate().withPrefix("nimble").register(XD())
9884
- const YD=mi.tagFor(JD)
9885
- class QD extends(BR(HR(CD))){createValidator(){return new HD(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:YD,groupHeaderViewTag:GD,delegatedEvents:[],sortOperation:TT}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof Fb){if(!e.resolvedIcon)throw Error("Unresolved icon")
9886
- return new ZD(e.resolvedIcon,e.severity,e.text)}if(e instanceof zb)return new jD(e.text)
9887
- throw new Error("Unsupported mapping")}}const eF=QD.compose({baseName:"table-column-icon",template:$D,styles:SD})
9888
- mi.getOrCreate().withPrefix("nimble").register(eF()),mi.tagFor(QD)
9889
- class tF extends hD{cellRecordChanged(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}const nF=tF.compose({baseName:"table-column-text-cell-view",template:cD,styles:dD})
9890
- mi.getOrCreate().withPrefix("nimble").register(nF())
9891
- const iF=mi.tagFor(tF)
9892
- class oF extends nD{getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:iF,groupHeaderViewTag:QR,delegatedEvents:[],sortOperation:RT}}}const rF=oF.compose({baseName:"table-column-text",template:LR,styles:zR})
9893
- mi.getOrCreate().withPrefix("nimble").register(rF()),mi.tagFor(oF)
9894
- const sF=we`
9882
+ t instanceof jD?(this.visual="icon",this.severity=t.severity,this.text=t.text,this.iconTemplate=t.iconTemplate):t instanceof UD&&(this.visual="spinner",this.text=t.text)}}e([m],XD.prototype,"severity",void 0),e([m],XD.prototype,"text",void 0),e([m],XD.prototype,"iconTemplate",void 0),e([m],XD.prototype,"visual",void 0)
9883
+ const YD=XD.compose({baseName:"table-column-icon-cell-view",template:JD})
9884
+ mi.getOrCreate().withPrefix("nimble").register(YD())
9885
+ const QD=mi.tagFor(XD)
9886
+ class eF extends(BR(HR(SD))){createValidator(){return new BD(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:QD,groupHeaderViewTag:KD,delegatedEvents:[],sortOperation:TT}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof Fb){if(!e.resolvedIcon)throw Error("Unresolved icon")
9887
+ return new jD(e.resolvedIcon,e.severity,e.text)}if(e instanceof zb)return new UD(e.text)
9888
+ throw new Error("Unsupported mapping")}}const tF=eF.compose({baseName:"table-column-icon",template:_D,styles:$D})
9889
+ mi.getOrCreate().withPrefix("nimble").register(tF()),mi.tagFor(eF)
9890
+ class nF extends hD{cellRecordChanged(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}const iF=nF.compose({baseName:"table-column-text-cell-view",template:cD,styles:dD})
9891
+ mi.getOrCreate().withPrefix("nimble").register(iF())
9892
+ const oF=mi.tagFor(nF)
9893
+ class rF extends nD{getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:oF,groupHeaderViewTag:QR,delegatedEvents:[],sortOperation:RT}}}const sF=rF.compose({baseName:"table-column-text",template:LR,styles:zR})
9894
+ mi.getOrCreate().withPrefix("nimble").register(sF()),mi.tagFor(rF)
9895
+ const aF=we`
9895
9896
  ${Io("grid")}
9896
9897
 
9897
9898
  :host {
@@ -9919,7 +9920,7 @@ const sF=we`
9919
9920
  overflow: auto;
9920
9921
  }
9921
9922
  `
9922
- class aF extends no{constructor(){super(),this.activeindicator=!1}}const lF=aF.compose({baseName:"tabs",baseClass:no,template:(e,t)=>W`
9923
+ class lF extends no{constructor(){super(),this.activeindicator=!1}}const cF=lF.compose({baseName:"tabs",baseClass:no,template:(e,t)=>W`
9923
9924
  <template class="${e=>e.orientation}">
9924
9925
  ${Qe(0,t)}
9925
9926
  <div class="tablist" part="tablist" role="tablist">
@@ -9938,9 +9939,9 @@ class aF extends no{constructor(){super(),this.activeindicator=!1}}const lF=aF.c
9938
9939
  <slot name="tabpanel" ${Ge("tabpanels")}></slot>
9939
9940
  </div>
9940
9941
  </template>
9941
- `,styles:sF})
9942
- mi.getOrCreate().withPrefix("nimble").register(lF()),mi.tagFor(aF)
9943
- const cF=we`
9942
+ `,styles:aF})
9943
+ mi.getOrCreate().withPrefix("nimble").register(cF()),mi.tagFor(lF)
9944
+ const dF=we`
9944
9945
  ${Io("flex")}
9945
9946
 
9946
9947
  :host {
@@ -9958,15 +9959,15 @@ const cF=we`
9958
9959
  rgba(${pa}, 0.3);
9959
9960
  margin: calc(${Ra} / 4) calc(${Ra} / 2);
9960
9961
  }
9961
- `,dF=W`
9962
+ `,hF=W`
9962
9963
  <template slot="end">
9963
9964
  <div class="separator"></div>
9964
9965
  <slot></slot>
9965
9966
  </template>
9966
9967
  `
9967
- class hF extends zt{}const uF=hF.compose({baseName:"tabs-toolbar",template:dF,styles:cF})
9968
- mi.getOrCreate().withPrefix("nimble").register(uF()),mi.tagFor(hF)
9969
- const pF="outline",fF="block",gF=we`
9968
+ class uF extends zt{}const pF=uF.compose({baseName:"tabs-toolbar",template:hF,styles:dF})
9969
+ mi.getOrCreate().withPrefix("nimble").register(pF()),mi.tagFor(uF)
9970
+ const fF="outline",gF="block",mF=we`
9970
9971
  ${Io("inline-flex")}
9971
9972
  ${qf}
9972
9973
 
@@ -10106,12 +10107,12 @@ const pF="outline",fF="block",gF=we`
10106
10107
  top: calc(${Ra} / 2);
10107
10108
  right: var(--ni-private-scrollbar-width);
10108
10109
  }
10109
- `.withBehaviors(vd(pF,we`
10110
+ `.withBehaviors(vd(fF,we`
10110
10111
  .control {
10111
10112
  border-color: rgba(${pa}, 0.3);
10112
10113
  background-color: transparent;
10113
10114
  }
10114
- `),vd(fF,we`
10115
+ `),vd(gF,we`
10115
10116
  .control {
10116
10117
  background-color: rgba(${pa}, 0.1);
10117
10118
  }
@@ -10129,8 +10130,8 @@ const pF="outline",fF="block",gF=we`
10129
10130
  border-bottom-color: ${fa};
10130
10131
  }
10131
10132
  `))
10132
- class mF extends so{constructor(){super(...arguments),this.appearance=pF,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(e,t){super.valueChanged(e,t),this.queueUpdateScrollbarWidth()}onResize(){this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,u.queueUpdate((()=>this.updateScrollbarWidth()))))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}}e([se],mF.prototype,"appearance",void 0),e([se({attribute:"error-text"})],mF.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],mF.prototype,"errorVisible",void 0),e([m],mF.prototype,"scrollbarWidth",void 0)
10133
- const vF=mF.compose({baseName:"text-area",baseClass:so,template:()=>W`
10133
+ class vF extends so{constructor(){super(...arguments),this.appearance=fF,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(e,t){super.valueChanged(e,t),this.queueUpdateScrollbarWidth()}onResize(){this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,u.queueUpdate((()=>this.updateScrollbarWidth()))))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}}e([se],vF.prototype,"appearance",void 0),e([se({attribute:"error-text"})],vF.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],vF.prototype,"errorVisible",void 0),e([m],vF.prototype,"scrollbarWidth",void 0)
10134
+ const bF=vF.compose({baseName:"text-area",baseClass:so,template:()=>W`
10134
10135
  <label
10135
10136
  part="label"
10136
10137
  for="control"
@@ -10187,9 +10188,9 @@ const vF=mF.compose({baseName:"text-area",baseClass:so,template:()=>W`
10187
10188
  ></${ef}>
10188
10189
  ${Ff}
10189
10190
  </div>
10190
- `,styles:gF,shadowOptions:{delegatesFocus:!0}})
10191
- mi.getOrCreate().withPrefix("nimble").register(vF()),mi.tagFor(mF)
10192
- const bF="underline",wF="outline",yF="block",xF="frameless",kF=we`
10191
+ `,styles:mF,shadowOptions:{delegatesFocus:!0}})
10192
+ mi.getOrCreate().withPrefix("nimble").register(bF()),mi.tagFor(vF)
10193
+ const wF="underline",yF="outline",xF="block",kF="frameless",CF=we`
10193
10194
  ${Io("inline-block")}
10194
10195
  ${qf}
10195
10196
 
@@ -10361,12 +10362,12 @@ const bF="underline",wF="outline",yF="block",xF="frameless",kF=we`
10361
10362
  slot[name='actions']::slotted(*) {
10362
10363
  ${Ea.cssCustomProperty}: 24px;
10363
10364
  }
10364
- `.withBehaviors(vd(bF,we`
10365
+ `.withBehaviors(vd(wF,we`
10365
10366
  .root {
10366
10367
  border-bottom-width: ${Da};
10367
10368
  padding-bottom: 0;
10368
10369
  }
10369
- `),vd(yF,we`
10370
+ `),vd(xF,we`
10370
10371
  .root {
10371
10372
  background-color: rgba(${pa}, 0.1);
10372
10373
  }
@@ -10394,12 +10395,12 @@ const bF="underline",wF="outline",yF="block",xF="frameless",kF=we`
10394
10395
  :host([disabled]) .root {
10395
10396
  background-color: rgba(${pa}, 0.07);
10396
10397
  }
10397
- `),vd(wF,we`
10398
+ `),vd(yF,we`
10398
10399
  .root {
10399
10400
  border-width: ${Da};
10400
10401
  padding: 0;
10401
10402
  }
10402
- `),vd(xF,we`
10403
+ `),vd(kF,we`
10403
10404
  .control {
10404
10405
  padding-left: ${Da};
10405
10406
  padding-right: ${Da};
@@ -10417,8 +10418,8 @@ const bF="underline",wF="outline",yF="block",xF="frameless",kF=we`
10417
10418
  filter: invert(100%);
10418
10419
  }
10419
10420
  `))
10420
- class CF extends Ni{constructor(){super(...arguments),this.appearance=bF,this.errorVisible=!1,this.fullBleed=!1}}e([se],CF.prototype,"appearance",void 0),e([se({attribute:"error-text"})],CF.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],CF.prototype,"errorVisible",void 0),e([se({attribute:"full-bleed",mode:"boolean"})],CF.prototype,"fullBleed",void 0)
10421
- const SF=CF.compose({baseName:"text-field",baseClass:Ni,template:(e,t)=>W`
10421
+ class SF extends Ni{constructor(){super(...arguments),this.appearance=wF,this.errorVisible=!1,this.fullBleed=!1}}e([se],SF.prototype,"appearance",void 0),e([se({attribute:"error-text"})],SF.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],SF.prototype,"errorVisible",void 0),e([se({attribute:"full-bleed",mode:"boolean"})],SF.prototype,"fullBleed",void 0)
10422
+ const $F=SF.compose({baseName:"text-field",baseClass:Ni,template:(e,t)=>W`
10422
10423
  <template
10423
10424
  class="
10424
10425
  ${e=>e.readOnly?"readonly":""}
@@ -10478,7 +10479,7 @@ const SF=CF.compose({baseName:"text-field",baseClass:Ni,template:(e,t)=>W`
10478
10479
  ${Ye(0,t)}
10479
10480
  </div>
10480
10481
  </template>
10481
- `,styles:kF,shadowOptions:{delegatesFocus:!0},end:W`
10482
+ `,styles:CF,shadowOptions:{delegatesFocus:!0},end:W`
10482
10483
  <${ef}
10483
10484
  severity="error"
10484
10485
  class="error-icon"
@@ -10488,8 +10489,8 @@ const SF=CF.compose({baseName:"text-field",baseClass:Ni,template:(e,t)=>W`
10488
10489
  </span>
10489
10490
  ${Ff}
10490
10491
  `})
10491
- mi.getOrCreate().withPrefix("nimble").register(SF()),mi.tagFor(CF)
10492
- const $F=we`
10492
+ mi.getOrCreate().withPrefix("nimble").register($F()),mi.tagFor(SF)
10493
+ const _F=we`
10493
10494
  ${Io("inline-flex")}
10494
10495
 
10495
10496
  :host {
@@ -10574,7 +10575,7 @@ const $F=we`
10574
10575
  .status-icon {
10575
10576
  opacity: 0.6;
10576
10577
  }
10577
- `)),_F=W`
10578
+ `)),MF=W`
10578
10579
  ${Pe((e=>e.tooltipVisible),W`
10579
10580
  <${Ld}
10580
10581
  class="anchored-region"
@@ -10607,11 +10608,11 @@ const $F=we`
10607
10608
  </${Ld}>
10608
10609
  `)}
10609
10610
  `
10610
- class MF extends $o{constructor(){super(...arguments),this.iconVisible=!1}}e([se],MF.prototype,"severity",void 0),e([se({attribute:"icon-visible",mode:"boolean"})],MF.prototype,"iconVisible",void 0)
10611
- const AF=MF.compose({baseName:"tooltip",baseClass:$o,template:_F,styles:$F})
10612
- mi.getOrCreate().withPrefix("nimble").register(AF()),mi.tagFor(MF)
10613
- const IF="group-selected",EF="all",OF="leaves-only",TF="none"
10614
- class RF{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 DF=we`
10611
+ class AF extends $o{constructor(){super(...arguments),this.iconVisible=!1}}e([se],AF.prototype,"severity",void 0),e([se({attribute:"icon-visible",mode:"boolean"})],AF.prototype,"iconVisible",void 0)
10612
+ const IF=AF.compose({baseName:"tooltip",baseClass:$o,template:MF,styles:_F})
10613
+ mi.getOrCreate().withPrefix("nimble").register(IF()),mi.tagFor(AF)
10614
+ const EF="group-selected",OF="all",TF="leaves-only",RF="none"
10615
+ class DF{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 FF=we`
10615
10616
  ${Io("block")}
10616
10617
 
10617
10618
  :host {
@@ -10627,7 +10628,7 @@ class RF{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
10627
10628
  }
10628
10629
 
10629
10630
  ${""}
10630
- :host([${IF}])::after {
10631
+ :host([${EF}])::after {
10631
10632
  background: ${ba};
10632
10633
  border-radius: 0px;
10633
10634
  content: '';
@@ -10649,7 +10650,7 @@ class RF{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
10649
10650
  background: ${ha};
10650
10651
  }
10651
10652
 
10652
- :host([${IF}]) .positioning-region:hover {
10653
+ :host([${EF}]) .positioning-region:hover {
10653
10654
  background: ${da};
10654
10655
  }
10655
10656
 
@@ -10757,7 +10758,7 @@ class RF{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
10757
10758
  display: block;
10758
10759
  }
10759
10760
  `.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)
10760
- t&&ea.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new RF(this.ltr,this.rtl,e),n=ea.getValueFor(e)
10761
+ t&&ea.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new DF(this.ltr,this.rtl,e),n=ea.getValueFor(e)
10761
10762
  ea.subscribe(t),t.attach(n),this.cache.set(e,t)}}(we`
10762
10763
  .expand-collapse-button {
10763
10764
  left: var(
@@ -10789,8 +10790,8 @@ ea.subscribe(t),t.attach(n),this.cache.set(e,t)}}(we`
10789
10790
  transform: rotate(135deg);
10790
10791
  }
10791
10792
  `))
10792
- class FF extends Mo{constructor(){super(...arguments),this.groupSelected=!1}}e([se({attribute:"group-selected",mode:"boolean"})],FF.prototype,"groupSelected",void 0)
10793
- const NF=FF.compose({baseName:"tree-item",baseClass:Mo,template:(e,t)=>W`
10793
+ class NF extends Mo{constructor(){super(...arguments),this.groupSelected=!1}}e([se({attribute:"group-selected",mode:"boolean"})],NF.prototype,"groupSelected",void 0)
10794
+ const zF=NF.compose({baseName:"tree-item",baseClass:Mo,template:(e,t)=>W`
10794
10795
  <template
10795
10796
  role="treeitem"
10796
10797
  slot="${e=>e.isNestedItem()?"item":void 0}"
@@ -10830,9 +10831,9 @@ const NF=FF.compose({baseName:"tree-item",baseClass:Mo,template:(e,t)=>W`
10830
10831
  </div>
10831
10832
  `)}
10832
10833
  </template>
10833
- `,styles:DF,expandCollapseGlyph:th.data})
10834
- mi.getOrCreate().withPrefix("nimble").register(NF()),mi.tagFor(FF)
10835
- const zF=we`
10834
+ `,styles:FF,expandCollapseGlyph:th.data})
10835
+ mi.getOrCreate().withPrefix("nimble").register(zF()),mi.tagFor(NF)
10836
+ const PF=we`
10836
10837
  ${Io("flex")}
10837
10838
 
10838
10839
  :host {
@@ -10844,7 +10845,7 @@ const zF=we`
10844
10845
  :host(${To}) {
10845
10846
  outline: none;
10846
10847
  }
10847
- `,PF=W`
10848
+ `,VF=W`
10848
10849
  <template
10849
10850
  role="tree"
10850
10851
  ${De("treeView")}
@@ -10858,231 +10859,231 @@ const zF=we`
10858
10859
  <slot ${Ge("slottedTreeItems")}></slot>
10859
10860
  </template>
10860
10861
  `
10861
- class VF extends Ao{constructor(){super(...arguments),this.selectionMode=EF,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
10862
+ class LF extends Ao{constructor(){super(...arguments),this.selectionMode=OF,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
10862
10863
  if(!(e.target instanceof Element&&_o(e.target)))return!0
10863
10864
  const t=e.target
10864
- return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case EF:return!0
10865
- case TF:return!1
10866
- case OF:return!this.itemHasChildren(e)
10867
- default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof FF&&(e.groupSelected=!1)
10865
+ return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case OF:return!0
10866
+ case RF:return!1
10867
+ case TF:return!this.itemHasChildren(e)
10868
+ default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof NF&&(e.groupSelected=!1)
10868
10869
  for(let e of this.selectedItems){for(;null!==e.parentElement&&e.parentElement!==this;)e=e.parentElement
10869
- e instanceof FF&&(e.groupSelected=!0)}}}e([se({attribute:"selection-mode"})],VF.prototype,"selectionMode",void 0),e([m],VF.prototype,"selectedItems",void 0)
10870
- const LF=VF.compose({baseName:"tree-view",baseClass:Ao,template:PF,styles:zF})
10871
- mi.getOrCreate().withPrefix("nimble").register(LF()),mi.tagFor(VF)
10872
- var HF={value:()=>{}}
10873
- function BF(){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)
10874
- i[e]=[]}return new qF(i)}function qF(e){this._=e}function ZF(e,t){for(var n,i=0,o=e.length;i<o;++i)if((n=e[i]).name===t)return n.value}function jF(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=HF,e=e.slice(0,i).concat(e.slice(i+1))
10875
- break}return null!=n&&e.push({name:t,value:n}),e}qF.prototype=BF.prototype={constructor:qF,on:function(e,t){var n,i,o=this._,r=(i=o,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
10870
+ e instanceof NF&&(e.groupSelected=!0)}}}e([se({attribute:"selection-mode"})],LF.prototype,"selectionMode",void 0),e([m],LF.prototype,"selectedItems",void 0)
10871
+ const HF=LF.compose({baseName:"tree-view",baseClass:Ao,template:VF,styles:PF})
10872
+ mi.getOrCreate().withPrefix("nimble").register(HF()),mi.tagFor(LF)
10873
+ var BF={value:()=>{}}
10874
+ function qF(){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)
10875
+ i[e]=[]}return new ZF(i)}function ZF(e){this._=e}function jF(e,t){for(var n,i=0,o=e.length;i<o;++i)if((n=e[i]).name===t)return n.value}function UF(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=BF,e=e.slice(0,i).concat(e.slice(i+1))
10876
+ break}return null!=n&&e.push({name:t,value:n}),e}ZF.prototype=qF.prototype={constructor:ZF,on:function(e,t){var n,i,o=this._,r=(i=o,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
10876
10877
  if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!i.hasOwnProperty(e))throw new Error("unknown type: "+e)
10877
10878
  return{type:e,name:t}}))),s=-1,a=r.length
10878
10879
  if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t)
10879
- for(;++s<a;)if(n=(e=r[s]).type)o[n]=jF(o[n],e.name,t)
10880
- else if(null==t)for(n in o)o[n]=jF(o[n],e.name,null)
10881
- return this}for(;++s<a;)if((n=(e=r[s]).type)&&(n=ZF(o[n],e.name)))return n},copy:function(){var e={},t=this._
10880
+ for(;++s<a;)if(n=(e=r[s]).type)o[n]=UF(o[n],e.name,t)
10881
+ else if(null==t)for(n in o)o[n]=UF(o[n],e.name,null)
10882
+ return this}for(;++s<a;)if((n=(e=r[s]).type)&&(n=jF(o[n],e.name)))return n},copy:function(){var e={},t=this._
10882
10883
  for(var n in t)e[n]=t[n].slice()
10883
- return new qF(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]
10884
+ return new ZF(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]
10884
10885
  if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
10885
10886
  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)
10886
10887
  for(var i=this._[e],o=0,r=i.length;o<r;++o)i[o].value.apply(t,n)}}
10887
- var UF="http://www.w3.org/1999/xhtml",WF={svg:"http://www.w3.org/2000/svg",xhtml:UF,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
10888
- function GF(e){var t=e+="",n=t.indexOf(":")
10889
- return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),WF.hasOwnProperty(t)?{space:WF[t],local:e}:e}function KF(e){return function(){var t=this.ownerDocument,n=this.namespaceURI
10890
- return n===UF&&t.documentElement.namespaceURI===UF?t.createElement(e):t.createElementNS(n,e)}}function JF(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function XF(e){var t=GF(e)
10891
- return(t.local?JF:KF)(t)}function YF(){}function QF(e){return null==e?YF:function(){return this.querySelector(e)}}function eN(){return[]}function tN(e){return null==e?eN:function(){return this.querySelectorAll(e)}}function nN(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t)
10892
- var t}}function iN(e){return function(){return this.matches(e)}}function oN(e){return function(t){return t.matches(e)}}var rN=Array.prototype.find
10893
- function sN(){return this.firstElementChild}var aN=Array.prototype.filter
10894
- function lN(){return Array.from(this.children)}function cN(e){return new Array(e.length)}function dN(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function hN(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 dN(e,r[a])
10895
- for(;a<l;++a)(s=t[a])&&(o[a]=s)}function uN(e,t,n,i,o,r,s){var a,l,c,d=new Map,h=t.length,u=r.length,p=new Array(h)
10888
+ var WF="http://www.w3.org/1999/xhtml",GF={svg:"http://www.w3.org/2000/svg",xhtml:WF,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
10889
+ function KF(e){var t=e+="",n=t.indexOf(":")
10890
+ return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),GF.hasOwnProperty(t)?{space:GF[t],local:e}:e}function JF(e){return function(){var t=this.ownerDocument,n=this.namespaceURI
10891
+ return n===WF&&t.documentElement.namespaceURI===WF?t.createElement(e):t.createElementNS(n,e)}}function XF(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function YF(e){var t=KF(e)
10892
+ return(t.local?XF:JF)(t)}function QF(){}function eN(e){return null==e?QF:function(){return this.querySelector(e)}}function tN(){return[]}function nN(e){return null==e?tN:function(){return this.querySelectorAll(e)}}function iN(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t)
10893
+ var t}}function oN(e){return function(){return this.matches(e)}}function rN(e){return function(t){return t.matches(e)}}var sN=Array.prototype.find
10894
+ function aN(){return this.firstElementChild}var lN=Array.prototype.filter
10895
+ function cN(){return Array.from(this.children)}function dN(e){return new Array(e.length)}function hN(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function uN(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 hN(e,r[a])
10896
+ for(;a<l;++a)(s=t[a])&&(o[a]=s)}function pN(e,t,n,i,o,r,s){var a,l,c,d=new Map,h=t.length,u=r.length,p=new Array(h)
10896
10897
  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))
10897
- 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 dN(e,r[a])
10898
- for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(o[a]=l)}function pN(e){return e.__data__}function fN(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function gN(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function mN(e){return function(){this.removeAttribute(e)}}function vN(e){return function(){this.removeAttributeNS(e.space,e.local)}}function bN(e,t){return function(){this.setAttribute(e,t)}}function wN(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function yN(e,t){return function(){var n=t.apply(this,arguments)
10899
- null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function xN(e,t){return function(){var n=t.apply(this,arguments)
10900
- null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function kN(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function CN(e){return function(){this.style.removeProperty(e)}}function SN(e,t,n){return function(){this.style.setProperty(e,t,n)}}function $N(e,t,n){return function(){var i=t.apply(this,arguments)
10901
- null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function _N(e,t){return e.style.getPropertyValue(t)||kN(e).getComputedStyle(e,null).getPropertyValue(t)}function MN(e){return function(){delete this[e]}}function AN(e,t){return function(){this[e]=t}}function IN(e,t){return function(){var n=t.apply(this,arguments)
10902
- null==n?delete this[e]:this[e]=n}}function EN(e){return e.trim().split(/^|\s+/)}function ON(e){return e.classList||new TN(e)}function TN(e){this._node=e,this._names=EN(e.getAttribute("class")||"")}function RN(e,t){for(var n=ON(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function DN(e,t){for(var n=ON(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function FN(e){return function(){RN(this,e)}}function NN(e){return function(){DN(this,e)}}function zN(e,t){return function(){(t.apply(this,arguments)?RN:DN)(this,e)}}function PN(){this.textContent=""}function VN(e){return function(){this.textContent=e}}function LN(e){return function(){var t=e.apply(this,arguments)
10903
- this.textContent=null==t?"":t}}function HN(){this.innerHTML=""}function BN(e){return function(){this.innerHTML=e}}function qN(e){return function(){var t=e.apply(this,arguments)
10904
- this.innerHTML=null==t?"":t}}function ZN(){this.nextSibling&&this.parentNode.appendChild(this)}function jN(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function UN(){return null}function WN(){var e=this.parentNode
10905
- e&&e.removeChild(this)}function GN(){var e=this.cloneNode(!1),t=this.parentNode
10906
- return t?t.insertBefore(e,this.nextSibling):e}function KN(){var e=this.cloneNode(!0),t=this.parentNode
10907
- return t?t.insertBefore(e,this.nextSibling):e}function JN(e){return function(){var t=this.__on
10908
- 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 XN(e,t,n){return function(){var i,o=this.__on,r=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
10898
+ 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 hN(e,r[a])
10899
+ for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(o[a]=l)}function fN(e){return e.__data__}function gN(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function mN(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function vN(e){return function(){this.removeAttribute(e)}}function bN(e){return function(){this.removeAttributeNS(e.space,e.local)}}function wN(e,t){return function(){this.setAttribute(e,t)}}function yN(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function xN(e,t){return function(){var n=t.apply(this,arguments)
10900
+ null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function kN(e,t){return function(){var n=t.apply(this,arguments)
10901
+ null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function CN(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function SN(e){return function(){this.style.removeProperty(e)}}function $N(e,t,n){return function(){this.style.setProperty(e,t,n)}}function _N(e,t,n){return function(){var i=t.apply(this,arguments)
10902
+ null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function MN(e,t){return e.style.getPropertyValue(t)||CN(e).getComputedStyle(e,null).getPropertyValue(t)}function AN(e){return function(){delete this[e]}}function IN(e,t){return function(){this[e]=t}}function EN(e,t){return function(){var n=t.apply(this,arguments)
10903
+ null==n?delete this[e]:this[e]=n}}function ON(e){return e.trim().split(/^|\s+/)}function TN(e){return e.classList||new RN(e)}function RN(e){this._node=e,this._names=ON(e.getAttribute("class")||"")}function DN(e,t){for(var n=TN(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function FN(e,t){for(var n=TN(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function NN(e){return function(){DN(this,e)}}function zN(e){return function(){FN(this,e)}}function PN(e,t){return function(){(t.apply(this,arguments)?DN:FN)(this,e)}}function VN(){this.textContent=""}function LN(e){return function(){this.textContent=e}}function HN(e){return function(){var t=e.apply(this,arguments)
10904
+ this.textContent=null==t?"":t}}function BN(){this.innerHTML=""}function qN(e){return function(){this.innerHTML=e}}function ZN(e){return function(){var t=e.apply(this,arguments)
10905
+ this.innerHTML=null==t?"":t}}function jN(){this.nextSibling&&this.parentNode.appendChild(this)}function UN(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function WN(){return null}function GN(){var e=this.parentNode
10906
+ e&&e.removeChild(this)}function KN(){var e=this.cloneNode(!1),t=this.parentNode
10907
+ return t?t.insertBefore(e,this.nextSibling):e}function JN(){var e=this.cloneNode(!0),t=this.parentNode
10908
+ return t?t.insertBefore(e,this.nextSibling):e}function XN(e){return function(){var t=this.__on
10909
+ 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 YN(e,t,n){return function(){var i,o=this.__on,r=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
10909
10910
  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)
10910
- 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 YN(e,t,n){var i=kN(e),o=i.CustomEvent
10911
- "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 QN(e,t){return function(){return YN(this,e,t)}}function ez(e,t){return function(){return YN(this,e,t.apply(this,arguments))}}dN.prototype={constructor:dN,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)}},TN.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)
10911
+ 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 QN(e,t,n){var i=CN(e),o=i.CustomEvent
10912
+ "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 ez(e,t){return function(){return QN(this,e,t)}}function tz(e,t){return function(){return QN(this,e,t.apply(this,arguments))}}hN.prototype={constructor:hN,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)}},RN.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)
10912
10913
  t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}}
10913
- var tz=[null]
10914
- function nz(e,t){this._groups=e,this._parents=t}function iz(){return new nz([[document.documentElement]],tz)}function oz(e){return"string"==typeof e?new nz([[document.querySelector(e)]],[document.documentElement]):new nz([[e]],tz)}function rz(e,t){if(e=function(e){let t
10914
+ var nz=[null]
10915
+ function iz(e,t){this._groups=e,this._parents=t}function oz(){return new iz([[document.documentElement]],nz)}function rz(e){return"string"==typeof e?new iz([[document.querySelector(e)]],[document.documentElement]):new iz([[e]],nz)}function sz(e,t){if(e=function(e){let t
10915
10916
  for(;t=e.sourceEvent;)e=t
10916
10917
  return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t
10917
10918
  if(n.createSVGPoint){var i=n.createSVGPoint()
10918
10919
  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()
10919
- return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}nz.prototype=iz.prototype={constructor:nz,select:function(e){"function"!=typeof e&&(e=QF(e))
10920
+ return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}iz.prototype=oz.prototype={constructor:iz,select:function(e){"function"!=typeof e&&(e=eN(e))
10920
10921
  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)
10921
- return new nz(i,this._parents)},selectAll:function(e){e="function"==typeof e?nN(e):tN(e)
10922
+ return new iz(i,this._parents)},selectAll:function(e){e="function"==typeof e?iN(e):nN(e)
10922
10923
  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))
10923
- return new nz(i,o)},selectChild:function(e){return this.select(null==e?sN:function(e){return function(){return rN.call(this.children,e)}}("function"==typeof e?e:oN(e)))},selectChildren:function(e){return this.selectAll(null==e?lN:function(e){return function(){return aN.call(this.children,e)}}("function"==typeof e?e:oN(e)))},filter:function(e){"function"!=typeof e&&(e=iN(e))
10924
+ return new iz(i,o)},selectChild:function(e){return this.select(null==e?aN:function(e){return function(){return sN.call(this.children,e)}}("function"==typeof e?e:rN(e)))},selectChildren:function(e){return this.selectAll(null==e?cN:function(e){return function(){return lN.call(this.children,e)}}("function"==typeof e?e:rN(e)))},filter:function(e){"function"!=typeof e&&(e=oN(e))
10924
10925
  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)
10925
- return new nz(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,pN)
10926
- var n,i=t?uN:hN,o=this._parents,r=this._groups
10926
+ return new iz(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,fN)
10927
+ var n,i=t?pN:uN,o=this._parents,r=this._groups
10927
10928
  "function"!=typeof e&&(n=e,e=function(){return n})
10928
- 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=fN(e.call(h,h&&h.__data__,d,o)),g=f.length,m=l[d]=new Array(g),v=a[d]=new Array(g)
10929
+ 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=gN(e.call(h,h&&h.__data__,d,o)),g=f.length,m=l[d]=new Array(g),v=a[d]=new Array(g)
10929
10930
  i(h,u,m,v,c[d]=new Array(p),f,t)
10930
- for(var b,w,y=0,x=0;y<g;++y)if(b=m[y]){for(y>=x&&(x=y+1);!(w=v[x])&&++x<g;);b._next=w||null}}return(a=new nz(a,o))._enter=l,a._exit=c,a},enter:function(){return new nz(this._enter||this._groups.map(cN),this._parents)},exit:function(){return new nz(this._exit||this._groups.map(cN),this._parents)},join:function(e,t,n){var i=this.enter(),o=this,r=this.exit()
10931
+ for(var b,w,y=0,x=0;y<g;++y)if(b=m[y]){for(y>=x&&(x=y+1);!(w=v[x])&&++x<g;);b._next=w||null}}return(a=new iz(a,o))._enter=l,a._exit=c,a},enter:function(){return new iz(this._enter||this._groups.map(dN),this._parents)},exit:function(){return new iz(this._exit||this._groups.map(dN),this._parents)},join:function(e,t,n){var i=this.enter(),o=this,r=this.exit()
10931
10932
  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)
10932
10933
  for(;l<o;++l)a[l]=n[l]
10933
- return new nz(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)
10934
- return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=gN)
10934
+ return new iz(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)
10935
+ return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=mN)
10935
10936
  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)
10936
- c.sort(t)}return new nz(o,this._parents).order()},call:function(){var e=arguments[0]
10937
+ c.sort(t)}return new iz(o,this._parents).order()},call:function(){var e=arguments[0]
10937
10938
  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]
10938
10939
  if(s)return s}return null},size:function(){let e=0
10939
10940
  for(const t of this)++e
10940
10941
  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)
10941
- return this},attr:function(e,t){var n=GF(e)
10942
+ return this},attr:function(e,t){var n=KF(e)
10942
10943
  if(arguments.length<2){var i=this.node()
10943
- return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?vN:mN:"function"==typeof t?n.local?xN:yN:n.local?wN:bN)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?CN:"function"==typeof t?$N:SN)(e,t,null==n?"":n)):_N(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?MN:"function"==typeof t?IN:AN)(e,t)):this.node()[e]},classed:function(e,t){var n=EN(e+"")
10944
- if(arguments.length<2){for(var i=ON(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1
10945
- return!0}return this.each(("function"==typeof t?zN:t?FN:NN)(n,t))},text:function(e){return arguments.length?this.each(null==e?PN:("function"==typeof e?LN:VN)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?HN:("function"==typeof e?qN:BN)(e)):this.node().innerHTML},raise:function(){return this.each(ZN)},lower:function(){return this.each(jN)},append:function(e){var t="function"==typeof e?e:XF(e)
10946
- return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:XF(e),i=null==t?UN:"function"==typeof t?t:QF(t)
10947
- return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(WN)},clone:function(e){return this.select(e?KN:GN)},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(".")
10944
+ return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?bN:vN:"function"==typeof t?n.local?kN:xN:n.local?yN:wN)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?SN:"function"==typeof t?_N:$N)(e,t,null==n?"":n)):MN(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?AN:"function"==typeof t?EN:IN)(e,t)):this.node()[e]},classed:function(e,t){var n=ON(e+"")
10945
+ if(arguments.length<2){for(var i=TN(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1
10946
+ return!0}return this.each(("function"==typeof t?PN:t?NN:zN)(n,t))},text:function(e){return arguments.length?this.each(null==e?VN:("function"==typeof e?HN:LN)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?BN:("function"==typeof e?ZN:qN)(e)):this.node().innerHTML},raise:function(){return this.each(jN)},lower:function(){return this.each(UN)},append:function(e){var t="function"==typeof e?e:YF(e)
10947
+ return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:YF(e),i=null==t?WN:"function"==typeof t?t:eN(t)
10948
+ return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(GN)},clone:function(e){return this.select(e?JN:KN)},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(".")
10948
10949
  return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),s=r.length
10949
- if(!(arguments.length<2)){for(a=t?XN:JN,i=0;i<s;++i)this.each(a(r[i],t,n))
10950
+ if(!(arguments.length<2)){for(a=t?YN:XN,i=0;i<s;++i)this.each(a(r[i],t,n))
10950
10951
  return this}var a=this.node().__on
10951
- 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?ez:QN)(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)}}
10952
- const sz={capture:!0,passive:!1}
10953
- function az(e){e.preventDefault(),e.stopImmediatePropagation()}function lz(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function cz(e,t){var n=Object.create(e.prototype)
10952
+ 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?tz:ez)(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)}}
10953
+ const az={capture:!0,passive:!1}
10954
+ function lz(e){e.preventDefault(),e.stopImmediatePropagation()}function cz(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function dz(e,t){var n=Object.create(e.prototype)
10954
10955
  for(var i in t)n[i]=t[i]
10955
- return n}function dz(){}var hz=.7,uz=1/hz,pz="\\s*([+-]?\\d+)\\s*",fz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",gz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",mz=/^#([0-9a-f]{3,8})$/,vz=new RegExp(`^rgb\\(${pz},${pz},${pz}\\)$`),bz=new RegExp(`^rgb\\(${gz},${gz},${gz}\\)$`),wz=new RegExp(`^rgba\\(${pz},${pz},${pz},${fz}\\)$`),yz=new RegExp(`^rgba\\(${gz},${gz},${gz},${fz}\\)$`),xz=new RegExp(`^hsl\\(${fz},${gz},${gz}\\)$`),kz=new RegExp(`^hsla\\(${fz},${gz},${gz},${fz}\\)$`),Cz={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}
10956
- function Sz(){return this.rgb().formatHex()}function $z(){return this.rgb().formatRgb()}function _z(e){var t,n
10957
- return e=(e+"").trim().toLowerCase(),(t=mz.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Mz(t):3===n?new Ez(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Az(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Az(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=vz.exec(e))?new Ez(t[1],t[2],t[3],1):(t=bz.exec(e))?new Ez(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=wz.exec(e))?Az(t[1],t[2],t[3],t[4]):(t=yz.exec(e))?Az(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=xz.exec(e))?Nz(t[1],t[2]/100,t[3]/100,1):(t=kz.exec(e))?Nz(t[1],t[2]/100,t[3]/100,t[4]):Cz.hasOwnProperty(e)?Mz(Cz[e]):"transparent"===e?new Ez(NaN,NaN,NaN,0):null}function Mz(e){return new Ez(e>>16&255,e>>8&255,255&e,1)}function Az(e,t,n,i){return i<=0&&(e=t=n=NaN),new Ez(e,t,n,i)}function Iz(e,t,n,i){return 1===arguments.length?((o=e)instanceof dz||(o=_z(o)),o?new Ez((o=o.rgb()).r,o.g,o.b,o.opacity):new Ez):new Ez(e,t,n,null==i?1:i)
10958
- var o}function Ez(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function Oz(){return`#${Fz(this.r)}${Fz(this.g)}${Fz(this.b)}`}function Tz(){const e=Rz(this.opacity)
10959
- return`${1===e?"rgb(":"rgba("}${Dz(this.r)}, ${Dz(this.g)}, ${Dz(this.b)}${1===e?")":`, ${e})`}`}function Rz(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Dz(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fz(e){return((e=Dz(e))<16?"0":"")+e.toString(16)}function Nz(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Pz(e,t,n,i)}function zz(e){if(e instanceof Pz)return new Pz(e.h,e.s,e.l,e.opacity)
10960
- if(e instanceof dz||(e=_z(e)),!e)return new Pz
10961
- if(e instanceof Pz)return e
10956
+ return n}function hz(){}var uz=.7,pz=1/uz,fz="\\s*([+-]?\\d+)\\s*",gz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",mz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",vz=/^#([0-9a-f]{3,8})$/,bz=new RegExp(`^rgb\\(${fz},${fz},${fz}\\)$`),wz=new RegExp(`^rgb\\(${mz},${mz},${mz}\\)$`),yz=new RegExp(`^rgba\\(${fz},${fz},${fz},${gz}\\)$`),xz=new RegExp(`^rgba\\(${mz},${mz},${mz},${gz}\\)$`),kz=new RegExp(`^hsl\\(${gz},${mz},${mz}\\)$`),Cz=new RegExp(`^hsla\\(${gz},${mz},${mz},${gz}\\)$`),Sz={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}
10957
+ function $z(){return this.rgb().formatHex()}function _z(){return this.rgb().formatRgb()}function Mz(e){var t,n
10958
+ return e=(e+"").trim().toLowerCase(),(t=vz.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Az(t):3===n?new Oz(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Iz(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Iz(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=bz.exec(e))?new Oz(t[1],t[2],t[3],1):(t=wz.exec(e))?new Oz(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=yz.exec(e))?Iz(t[1],t[2],t[3],t[4]):(t=xz.exec(e))?Iz(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=kz.exec(e))?zz(t[1],t[2]/100,t[3]/100,1):(t=Cz.exec(e))?zz(t[1],t[2]/100,t[3]/100,t[4]):Sz.hasOwnProperty(e)?Az(Sz[e]):"transparent"===e?new Oz(NaN,NaN,NaN,0):null}function Az(e){return new Oz(e>>16&255,e>>8&255,255&e,1)}function Iz(e,t,n,i){return i<=0&&(e=t=n=NaN),new Oz(e,t,n,i)}function Ez(e,t,n,i){return 1===arguments.length?((o=e)instanceof hz||(o=Mz(o)),o?new Oz((o=o.rgb()).r,o.g,o.b,o.opacity):new Oz):new Oz(e,t,n,null==i?1:i)
10959
+ var o}function Oz(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function Tz(){return`#${Nz(this.r)}${Nz(this.g)}${Nz(this.b)}`}function Rz(){const e=Dz(this.opacity)
10960
+ return`${1===e?"rgb(":"rgba("}${Fz(this.r)}, ${Fz(this.g)}, ${Fz(this.b)}${1===e?")":`, ${e})`}`}function Dz(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Fz(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Nz(e){return((e=Fz(e))<16?"0":"")+e.toString(16)}function zz(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Vz(e,t,n,i)}function Pz(e){if(e instanceof Vz)return new Vz(e.h,e.s,e.l,e.opacity)
10961
+ if(e instanceof hz||(e=Mz(e)),!e)return new Vz
10962
+ if(e instanceof Vz)return e
10962
10963
  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
10963
- 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 Pz(s,a,l,e.opacity)}function Pz(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function Vz(e){return(e=(e||0)%360)<0?e+360:e}function Lz(e){return Math.max(0,Math.min(1,e||0))}function Hz(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}lz(dz,_z,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Sz,formatHex:Sz,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return zz(this).formatHsl()},formatRgb:$z,toString:$z}),lz(Ez,Iz,cz(dz,{brighter(e){return e=null==e?uz:Math.pow(uz,e),new Ez(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?hz:Math.pow(hz,e),new Ez(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ez(Dz(this.r),Dz(this.g),Dz(this.b),Rz(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:Oz,formatHex:Oz,formatHex8:function(){return`#${Fz(this.r)}${Fz(this.g)}${Fz(this.b)}${Fz(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Tz,toString:Tz})),lz(Pz,(function(e,t,n,i){return 1===arguments.length?zz(e):new Pz(e,t,n,null==i?1:i)}),cz(dz,{brighter(e){return e=null==e?uz:Math.pow(uz,e),new Pz(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?hz:Math.pow(hz,e),new Pz(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
10964
- return new Ez(Hz(e>=240?e-240:e+120,o,i),Hz(e,o,i),Hz(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Pz(Vz(this.h),Lz(this.s),Lz(this.l),Rz(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=Rz(this.opacity)
10965
- return`${1===e?"hsl(":"hsla("}${Vz(this.h)}, ${100*Lz(this.s)}%, ${100*Lz(this.l)}%${1===e?")":`, ${e})`}`}}))
10966
- var Bz=e=>()=>e
10967
- function qz(e){return 1==(e=+e)?Zz: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):Bz(isNaN(t)?n:t)}}function Zz(e,t){var n=t-e
10968
- return n?function(e,t){return function(n){return e+n*t}}(e,n):Bz(isNaN(e)?t:e)}var jz=function e(t){var n=qz(t)
10969
- function i(e,t){var i=n((e=Iz(e)).r,(t=Iz(t)).r),o=n(e.g,t.g),r=n(e.b,t.b),s=Zz(e.opacity,t.opacity)
10964
+ 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 Vz(s,a,l,e.opacity)}function Vz(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function Lz(e){return(e=(e||0)%360)<0?e+360:e}function Hz(e){return Math.max(0,Math.min(1,e||0))}function Bz(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}cz(hz,Mz,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:$z,formatHex:$z,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Pz(this).formatHsl()},formatRgb:_z,toString:_z}),cz(Oz,Ez,dz(hz,{brighter(e){return e=null==e?pz:Math.pow(pz,e),new Oz(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?uz:Math.pow(uz,e),new Oz(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Oz(Fz(this.r),Fz(this.g),Fz(this.b),Dz(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:Tz,formatHex:Tz,formatHex8:function(){return`#${Nz(this.r)}${Nz(this.g)}${Nz(this.b)}${Nz(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Rz,toString:Rz})),cz(Vz,(function(e,t,n,i){return 1===arguments.length?Pz(e):new Vz(e,t,n,null==i?1:i)}),dz(hz,{brighter(e){return e=null==e?pz:Math.pow(pz,e),new Vz(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?uz:Math.pow(uz,e),new Vz(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
10965
+ return new Oz(Bz(e>=240?e-240:e+120,o,i),Bz(e,o,i),Bz(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Vz(Lz(this.h),Hz(this.s),Hz(this.l),Dz(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=Dz(this.opacity)
10966
+ return`${1===e?"hsl(":"hsla("}${Lz(this.h)}, ${100*Hz(this.s)}%, ${100*Hz(this.l)}%${1===e?")":`, ${e})`}`}}))
10967
+ var qz=e=>()=>e
10968
+ function Zz(e){return 1==(e=+e)?jz: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):qz(isNaN(t)?n:t)}}function jz(e,t){var n=t-e
10969
+ return n?function(e,t){return function(n){return e+n*t}}(e,n):qz(isNaN(e)?t:e)}var Uz=function e(t){var n=Zz(t)
10970
+ function i(e,t){var i=n((e=Ez(e)).r,(t=Ez(t)).r),o=n(e.g,t.g),r=n(e.b,t.b),s=jz(e.opacity,t.opacity)
10970
10971
  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)
10971
- function Uz(e,t){t||(t=[])
10972
+ function Wz(e,t){t||(t=[])
10972
10973
  var n,i=e?Math.min(t.length,e.length):0,o=t.slice()
10973
10974
  return function(r){for(n=0;n<i;++n)o[n]=e[n]*(1-r)+t[n]*r
10974
- return o}}function Wz(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)
10975
- for(n=0;n<o;++n)r[n]=eP(e[n],t[n])
10975
+ return o}}function Gz(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)
10976
+ for(n=0;n<o;++n)r[n]=tP(e[n],t[n])
10976
10977
  for(;n<i;++n)s[n]=t[n]
10977
10978
  return function(e){for(n=0;n<o;++n)s[n]=r[n](e)
10978
- return s}}function Gz(e,t){var n=new Date
10979
- return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function Kz(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Jz(e,t){var n,i={},o={}
10980
- for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=eP(e[n],t[n]):o[n]=t[n]
10979
+ return s}}function Kz(e,t){var n=new Date
10980
+ return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function Jz(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Xz(e,t){var n,i={},o={}
10981
+ for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=tP(e[n],t[n]):o[n]=t[n]
10981
10982
  return function(e){for(n in i)o[n]=i[n](e)
10982
- return o}}var Xz=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Yz=new RegExp(Xz.source,"g")
10983
- function Qz(e,t){var n,i,o,r=Xz.lastIndex=Yz.lastIndex=0,s=-1,a=[],l=[]
10984
- for(e+="",t+="";(n=Xz.exec(e))&&(i=Yz.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:Kz(n,i)})),r=Yz.lastIndex
10983
+ return o}}var Yz=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qz=new RegExp(Yz.source,"g")
10984
+ function eP(e,t){var n,i,o,r=Yz.lastIndex=Qz.lastIndex=0,s=-1,a=[],l=[]
10985
+ for(e+="",t+="";(n=Yz.exec(e))&&(i=Qz.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:Jz(n,i)})),r=Qz.lastIndex
10985
10986
  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)
10986
- return a.join("")})}function eP(e,t){var n,i,o=typeof t
10987
- return null==t||"boolean"===o?Bz(t):("number"===o?Kz:"string"===o?(n=_z(t))?(t=n,jz):Qz:t instanceof _z?jz:t instanceof Date?Gz:(i=t,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(t)?Wz:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Jz:Kz:Uz))(e,t)}function tP(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var nP,iP=180/Math.PI,oP={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
10988
- function rP(e,t,n,i,o,r){var s,a,l
10989
- 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)*iP,skewX:Math.atan(l)*iP,scaleX:s,scaleY:a}}function sP(e,t,n,i){function o(e){return e.length?e.pop()+" ":""}return function(r,s){var a=[],l=[]
10987
+ return a.join("")})}function tP(e,t){var n,i,o=typeof t
10988
+ return null==t||"boolean"===o?qz(t):("number"===o?Jz:"string"===o?(n=Mz(t))?(t=n,Uz):eP:t instanceof Mz?Uz:t instanceof Date?Kz:(i=t,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(t)?Gz:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Xz:Jz:Wz))(e,t)}function nP(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var iP,oP=180/Math.PI,rP={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
10989
+ function sP(e,t,n,i,o,r){var s,a,l
10990
+ 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)*oP,skewX:Math.atan(l)*oP,scaleX:s,scaleY:a}}function aP(e,t,n,i){function o(e){return e.length?e.pop()+" ":""}return function(r,s){var a=[],l=[]
10990
10991
  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)
10991
- a.push({i:l-4,x:Kz(e,o)},{i:l-2,x:Kz(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:Kz(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:Kz(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,")")
10992
- s.push({i:a-4,x:Kz(e,n)},{i:a-2,x:Kz(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)
10993
- return a.join("")}}}var aP=sP((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
10994
- return t.isIdentity?oP:rP(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),lP=sP((function(e){return null==e?oP:(nP||(nP=document.createElementNS("http://www.w3.org/2000/svg","g")),nP.setAttribute("transform",e),(e=nP.transform.baseVal.consolidate())?rP((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):oP)}),", ",")",")")
10995
- function cP(e){return((e=Math.exp(e))+1/e)/2}var dP,hP,uP=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,g=p*p+f*f
10992
+ a.push({i:l-4,x:Jz(e,o)},{i:l-2,x:Jz(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:Jz(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:Jz(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,")")
10993
+ s.push({i:a-4,x:Jz(e,n)},{i:a-2,x:Jz(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)
10994
+ return a.join("")}}}var lP=aP((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
10995
+ return t.isIdentity?rP:sP(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),cP=aP((function(e){return null==e?rP:(iP||(iP=document.createElementNS("http://www.w3.org/2000/svg","g")),iP.setAttribute("transform",e),(e=iP.transform.baseVal.consolidate())?sP((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):rP)}),", ",")",")")
10996
+ function dP(e){return((e=Math.exp(e))+1/e)/2}var hP,uP,pP=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,g=p*p+f*f
10996
10997
  if(g<1e-12)s=Math.log(u/c)/t,r=function(e){return[a+e*p,l+e*f,c*Math.exp(t*e*s)]}
10997
10998
  else{var m=Math.sqrt(g),v=(u*u-c*c+i*g)/(2*c*n*m),b=(u*u-c*c-i*g)/(2*u*n*m),w=Math.log(Math.sqrt(v*v+1)-v),y=Math.log(Math.sqrt(b*b+1)-b)
10998
- s=(y-w)/t,r=function(e){var i,o=e*s,r=cP(w),d=c/(n*m)*(r*(i=t*o+w,((i=Math.exp(2*i))-1)/(i+1))-function(e){return((e=Math.exp(e))-1/e)/2}(w))
10999
- return[a+d*p,l+d*f,c*r/cP(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
11000
- return e(n,i,i*i)},o}(Math.SQRT2,2,4),pP=0,fP=0,gP=0,mP=1e3,vP=0,bP=0,wP=0,yP="object"==typeof performance&&performance.now?performance:Date,xP="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
11001
- function kP(){return bP||(xP(CP),bP=yP.now()+wP)}function CP(){bP=0}function SP(){this._call=this._time=this._next=null}function $P(e,t,n){var i=new SP
11002
- return i.restart(e,t,n),i}function _P(){bP=(vP=yP.now())+wP,pP=fP=0
11003
- try{!function(){kP(),++pP
11004
- for(var e,t=dP;t;)(e=bP-t._time)>=0&&t._call.call(void 0,e),t=t._next;--pP}()}finally{pP=0,function(){var e,t,n=dP,i=1/0
11005
- 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:dP=t)
11006
- hP=e,AP(i)}(),bP=0}}function MP(){var e=yP.now(),t=e-vP
11007
- t>mP&&(wP-=t,vP=e)}function AP(e){pP||(fP&&(fP=clearTimeout(fP)),e-bP>24?(e<1/0&&(fP=setTimeout(_P,e-yP.now()-wP)),gP&&(gP=clearInterval(gP))):(gP||(vP=yP.now(),gP=setInterval(MP,mP)),pP=1,xP(_P)))}function IP(e,t,n){var i=new SP
11008
- return t=null==t?0:+t,i.restart((n=>{i.stop(),e(n+t)}),t,n),i}SP.prototype=$P.prototype={constructor:SP,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function")
11009
- n=(null==n?kP():+n)+(null==t?0:+t),this._next||hP===this||(hP?hP._next=this:dP=this,hP=this),this._call=e,this._time=n,AP()},stop:function(){this._call&&(this._call=null,this._time=1/0,AP())}}
11010
- var EP=BF("start","end","cancel","interrupt"),OP=[],TP=0,RP=1,DP=2,FP=3,NP=4,zP=5,PP=6
11011
- function VP(e,t,n,i,o,r){var s=e.__transition
10999
+ s=(y-w)/t,r=function(e){var i,o=e*s,r=dP(w),d=c/(n*m)*(r*(i=t*o+w,((i=Math.exp(2*i))-1)/(i+1))-function(e){return((e=Math.exp(e))-1/e)/2}(w))
11000
+ return[a+d*p,l+d*f,c*r/dP(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
11001
+ return e(n,i,i*i)},o}(Math.SQRT2,2,4),fP=0,gP=0,mP=0,vP=1e3,bP=0,wP=0,yP=0,xP="object"==typeof performance&&performance.now?performance:Date,kP="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
11002
+ function CP(){return wP||(kP(SP),wP=xP.now()+yP)}function SP(){wP=0}function $P(){this._call=this._time=this._next=null}function _P(e,t,n){var i=new $P
11003
+ return i.restart(e,t,n),i}function MP(){wP=(bP=xP.now())+yP,fP=gP=0
11004
+ try{!function(){CP(),++fP
11005
+ for(var e,t=hP;t;)(e=wP-t._time)>=0&&t._call.call(void 0,e),t=t._next;--fP}()}finally{fP=0,function(){var e,t,n=hP,i=1/0
11006
+ 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:hP=t)
11007
+ uP=e,IP(i)}(),wP=0}}function AP(){var e=xP.now(),t=e-bP
11008
+ t>vP&&(yP-=t,bP=e)}function IP(e){fP||(gP&&(gP=clearTimeout(gP)),e-wP>24?(e<1/0&&(gP=setTimeout(MP,e-xP.now()-yP)),mP&&(mP=clearInterval(mP))):(mP||(bP=xP.now(),mP=setInterval(AP,vP)),fP=1,kP(MP)))}function EP(e,t,n){var i=new $P
11009
+ return t=null==t?0:+t,i.restart((n=>{i.stop(),e(n+t)}),t,n),i}$P.prototype=_P.prototype={constructor:$P,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function")
11010
+ n=(null==n?CP():+n)+(null==t?0:+t),this._next||uP===this||(uP?uP._next=this:hP=this,uP=this),this._call=e,this._time=n,IP()},stop:function(){this._call&&(this._call=null,this._time=1/0,IP())}}
11011
+ var OP=qF("start","end","cancel","interrupt"),TP=[],RP=0,DP=1,FP=2,NP=3,zP=4,PP=5,VP=6
11012
+ function LP(e,t,n,i,o,r){var s=e.__transition
11012
11013
  if(s){if(n in s)return}else e.__transition={}
11013
11014
  !function(e,t,n){var i,o=e.__transition
11014
- function r(e){n.state=RP,n.timer.restart(s,n.delay,n.time),n.delay<=e&&s(e-n.delay)}function s(r){var c,d,h,u
11015
- if(n.state!==RP)return l()
11016
- for(c in o)if((u=o[c]).name===n.name){if(u.state===FP)return IP(s)
11017
- u.state===NP?(u.state=PP,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete o[c]):+c<t&&(u.state=PP,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete o[c])}if(IP((function(){n.state===FP&&(n.state=NP,n.timer.restart(a,n.delay,n.time),a(r))})),n.state=DP,n.on.call("start",e,e.__data__,n.index,n.group),n.state===DP){for(n.state=FP,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)
11018
- 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=zP,1),r=-1,s=i.length;++r<s;)i[r].call(e,o)
11019
- n.state===zP&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var i in n.state=PP,n.timer.stop(),delete o[t],o)return
11020
- delete e.__transition}o[t]=n,n.timer=$P(r,0,n.time)}(e,n,{name:t,index:i,group:o,on:EP,tween:OP,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:TP})}function LP(e,t){var n=BP(e,t)
11021
- if(n.state>TP)throw new Error("too late; already scheduled")
11022
- return n}function HP(e,t){var n=BP(e,t)
11023
- if(n.state>FP)throw new Error("too late; already running")
11024
- return n}function BP(e,t){var n=e.__transition
11015
+ function r(e){n.state=DP,n.timer.restart(s,n.delay,n.time),n.delay<=e&&s(e-n.delay)}function s(r){var c,d,h,u
11016
+ if(n.state!==DP)return l()
11017
+ for(c in o)if((u=o[c]).name===n.name){if(u.state===NP)return EP(s)
11018
+ u.state===zP?(u.state=VP,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete o[c]):+c<t&&(u.state=VP,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete o[c])}if(EP((function(){n.state===NP&&(n.state=zP,n.timer.restart(a,n.delay,n.time),a(r))})),n.state=FP,n.on.call("start",e,e.__data__,n.index,n.group),n.state===FP){for(n.state=NP,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)
11019
+ 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=PP,1),r=-1,s=i.length;++r<s;)i[r].call(e,o)
11020
+ n.state===PP&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var i in n.state=VP,n.timer.stop(),delete o[t],o)return
11021
+ delete e.__transition}o[t]=n,n.timer=_P(r,0,n.time)}(e,n,{name:t,index:i,group:o,on:OP,tween:TP,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:RP})}function HP(e,t){var n=qP(e,t)
11022
+ if(n.state>RP)throw new Error("too late; already scheduled")
11023
+ return n}function BP(e,t){var n=qP(e,t)
11024
+ if(n.state>NP)throw new Error("too late; already running")
11025
+ return n}function qP(e,t){var n=e.__transition
11025
11026
  if(!n||!(n=n[t]))throw new Error("transition not found")
11026
- return n}function qP(e,t){var n,i,o,r=e.__transition,s=!0
11027
- if(r){for(o in t=null==t?null:t+"",r)(n=r[o]).name===t?(i=n.state>DP&&n.state<zP,n.state=PP,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]):s=!1
11028
- s&&delete e.__transition}}function ZP(e,t){var n,i
11029
- return function(){var o=HP(this,e),r=o.tween
11027
+ return n}function ZP(e,t){var n,i,o,r=e.__transition,s=!0
11028
+ if(r){for(o in t=null==t?null:t+"",r)(n=r[o]).name===t?(i=n.state>FP&&n.state<PP,n.state=VP,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]):s=!1
11029
+ s&&delete e.__transition}}function jP(e,t){var n,i
11030
+ return function(){var o=BP(this,e),r=o.tween
11030
11031
  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)
11031
- break}o.tween=i}}function jP(e,t,n){var i,o
11032
+ break}o.tween=i}}function UP(e,t,n){var i,o
11032
11033
  if("function"!=typeof n)throw new Error
11033
- return function(){var r=HP(this,e),s=r.tween
11034
+ return function(){var r=BP(this,e),s=r.tween
11034
11035
  if(s!==i){o=(i=s).slice()
11035
11036
  for(var a={name:t,value:n},l=0,c=o.length;l<c;++l)if(o[l].name===t){o[l]=a
11036
- break}l===c&&o.push(a)}r.tween=o}}function UP(e,t,n){var i=e._id
11037
- return e.each((function(){var e=HP(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return BP(e,i).value[t]}}function WP(e,t){var n
11038
- return("number"==typeof t?Kz:t instanceof _z?jz:(n=_z(t))?(t=n,jz):Qz)(e,t)}function GP(e){return function(){this.removeAttribute(e)}}function KP(e){return function(){this.removeAttributeNS(e.space,e.local)}}function JP(e,t,n){var i,o,r=n+""
11037
+ break}l===c&&o.push(a)}r.tween=o}}function WP(e,t,n){var i=e._id
11038
+ return e.each((function(){var e=BP(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return qP(e,i).value[t]}}function GP(e,t){var n
11039
+ return("number"==typeof t?Jz:t instanceof Mz?Uz:(n=Mz(t))?(t=n,Uz):eP)(e,t)}function KP(e){return function(){this.removeAttribute(e)}}function JP(e){return function(){this.removeAttributeNS(e.space,e.local)}}function XP(e,t,n){var i,o,r=n+""
11039
11040
  return function(){var s=this.getAttribute(e)
11040
- return s===r?null:s===i?o:o=t(i=s,n)}}function XP(e,t,n){var i,o,r=n+""
11041
+ return s===r?null:s===i?o:o=t(i=s,n)}}function YP(e,t,n){var i,o,r=n+""
11041
11042
  return function(){var s=this.getAttributeNS(e.space,e.local)
11042
- return s===r?null:s===i?o:o=t(i=s,n)}}function YP(e,t,n){var i,o,r
11043
+ return s===r?null:s===i?o:o=t(i=s,n)}}function QP(e,t,n){var i,o,r
11043
11044
  return function(){var s,a,l=n(this)
11044
11045
  if(null!=l)return(s=this.getAttribute(e))===(a=l+"")?null:s===i&&a===o?r:(o=a,r=t(i=s,l))
11045
- this.removeAttribute(e)}}function QP(e,t,n){var i,o,r
11046
+ this.removeAttribute(e)}}function eV(e,t,n){var i,o,r
11046
11047
  return function(){var s,a,l=n(this)
11047
11048
  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))
11048
- this.removeAttributeNS(e.space,e.local)}}function eV(e,t){var n,i
11049
+ this.removeAttributeNS(e.space,e.local)}}function tV(e,t){var n,i
11049
11050
  function o(){var o=t.apply(this,arguments)
11050
- 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 tV(e,t){var n,i
11051
+ 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 nV(e,t){var n,i
11051
11052
  function o(){var o=t.apply(this,arguments)
11052
- 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 nV(e,t){return function(){LP(this,e).delay=+t.apply(this,arguments)}}function iV(e,t){return t=+t,function(){LP(this,e).delay=t}}function oV(e,t){return function(){HP(this,e).duration=+t.apply(this,arguments)}}function rV(e,t){return t=+t,function(){HP(this,e).duration=t}}var sV=iz.prototype.constructor
11053
- function aV(e){return function(){this.style.removeProperty(e)}}var lV=0
11054
- function cV(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function dV(){return++lV}var hV=iz.prototype
11055
- cV.prototype={constructor:cV,select:function(e){var t=this._name,n=this._id
11056
- "function"!=typeof e&&(e=QF(e))
11057
- 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,VP(h[u],t,n,u,h,BP(a,n)))
11058
- return new cV(r,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id
11059
- "function"!=typeof e&&(e=tN(e))
11060
- 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=BP(l,n),g=0,m=p.length;g<m;++g)(u=p[g])&&VP(u,t,n,g,p,f)
11061
- r.push(p),s.push(l)}return new cV(r,s,t,n)},selectChild:hV.selectChild,selectChildren:hV.selectChildren,filter:function(e){"function"!=typeof e&&(e=iN(e))
11053
+ 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 iV(e,t){return function(){HP(this,e).delay=+t.apply(this,arguments)}}function oV(e,t){return t=+t,function(){HP(this,e).delay=t}}function rV(e,t){return function(){BP(this,e).duration=+t.apply(this,arguments)}}function sV(e,t){return t=+t,function(){BP(this,e).duration=t}}var aV=oz.prototype.constructor
11054
+ function lV(e){return function(){this.style.removeProperty(e)}}var cV=0
11055
+ function dV(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function hV(){return++cV}var uV=oz.prototype
11056
+ dV.prototype={constructor:dV,select:function(e){var t=this._name,n=this._id
11057
+ "function"!=typeof e&&(e=eN(e))
11058
+ 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,LP(h[u],t,n,u,h,qP(a,n)))
11059
+ return new dV(r,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id
11060
+ "function"!=typeof e&&(e=nN(e))
11061
+ 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=qP(l,n),g=0,m=p.length;g<m;++g)(u=p[g])&&LP(u,t,n,g,p,f)
11062
+ r.push(p),s.push(l)}return new dV(r,s,t,n)},selectChild:uV.selectChild,selectChildren:uV.selectChildren,filter:function(e){"function"!=typeof e&&(e=oN(e))
11062
11063
  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)
11063
- return new cV(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
11064
+ return new dV(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
11064
11065
  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)
11065
11066
  for(;a<i;++a)s[a]=t[a]
11066
- return new cV(s,this._parents,this._name,this._id)},selection:function(){return new sV(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=dV(),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=BP(s,t)
11067
- VP(s,e,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new cV(i,this._parents,e,n)},call:hV.call,nodes:hV.nodes,node:hV.node,size:hV.size,empty:hV.empty,each:hV.each,on:function(e,t){var n=this._id
11068
- return arguments.length<2?BP(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(".")
11069
- return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?LP:HP
11067
+ return new dV(s,this._parents,this._name,this._id)},selection:function(){return new aV(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=hV(),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=qP(s,t)
11068
+ LP(s,e,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new dV(i,this._parents,e,n)},call:uV.call,nodes:uV.nodes,node:uV.node,size:uV.size,empty:uV.empty,each:uV.each,on:function(e,t){var n=this._id
11069
+ return arguments.length<2?qP(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(".")
11070
+ return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?HP:BP
11070
11071
  return function(){var s=r(this,e),a=s.on
11071
- a!==i&&(o=(i=a).copy()).on(t,n),s.on=o}}(n,e,t))},attr:function(e,t){var n=GF(e),i="transform"===n?lP:WP
11072
- return this.attrTween(e,"function"==typeof t?(n.local?QP:YP)(n,i,UP(this,"attr."+e,t)):null==t?(n.local?KP:GP)(n):(n.local?XP:JP)(n,i,t))},attrTween:function(e,t){var n="attr."+e
11072
+ a!==i&&(o=(i=a).copy()).on(t,n),s.on=o}}(n,e,t))},attr:function(e,t){var n=KF(e),i="transform"===n?cP:GP
11073
+ return this.attrTween(e,"function"==typeof t?(n.local?eV:QP)(n,i,WP(this,"attr."+e,t)):null==t?(n.local?JP:KP)(n):(n.local?YP:XP)(n,i,t))},attrTween:function(e,t){var n="attr."+e
11073
11074
  if(arguments.length<2)return(n=this.tween(n))&&n._value
11074
11075
  if(null==t)return this.tween(n,null)
11075
11076
  if("function"!=typeof t)throw new Error
11076
- var i=GF(e)
11077
- return this.tween(n,(i.local?eV:tV)(i,t))},style:function(e,t,n){var i="transform"==(e+="")?aP:WP
11077
+ var i=KF(e)
11078
+ return this.tween(n,(i.local?tV:nV)(i,t))},style:function(e,t,n){var i="transform"==(e+="")?lP:GP
11078
11079
  return null==t?this.styleTween(e,function(e,t){var n,i,o
11079
- return function(){var r=_N(this,e),s=(this.style.removeProperty(e),_N(this,e))
11080
- return r===s?null:r===n&&s===i?o:o=t(n=r,i=s)}}(e,i)).on("end.style."+e,aV(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var i,o,r
11081
- return function(){var s=_N(this,e),a=n(this),l=a+""
11082
- return null==a&&(this.style.removeProperty(e),l=a=_N(this,e)),s===l?null:s===i&&l===o?r:(o=l,r=t(i=s,a))}}(e,i,UP(this,"style."+e,t))).each(function(e,t){var n,i,o,r,s="style."+t,a="end."+s
11083
- return function(){var l=HP(this,e),c=l.on,d=null==l.value[s]?r||(r=aV(t)):void 0
11080
+ return function(){var r=MN(this,e),s=(this.style.removeProperty(e),MN(this,e))
11081
+ return r===s?null:r===n&&s===i?o:o=t(n=r,i=s)}}(e,i)).on("end.style."+e,lV(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var i,o,r
11082
+ return function(){var s=MN(this,e),a=n(this),l=a+""
11083
+ return null==a&&(this.style.removeProperty(e),l=a=MN(this,e)),s===l?null:s===i&&l===o?r:(o=l,r=t(i=s,a))}}(e,i,WP(this,"style."+e,t))).each(function(e,t){var n,i,o,r,s="style."+t,a="end."+s
11084
+ return function(){var l=BP(this,e),c=l.on,d=null==l.value[s]?r||(r=lV(t)):void 0
11084
11085
  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+""
11085
- return function(){var s=_N(this,e)
11086
+ return function(){var s=MN(this,e)
11086
11087
  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+="")
11087
11088
  if(arguments.length<2)return(i=this.tween(i))&&i._value
11088
11089
  if(null==t)return this.tween(i,null)
@@ -11090,7 +11091,7 @@ if("function"!=typeof t)throw new Error
11090
11091
  return this.tween(i,function(e,t,n){var i,o
11091
11092
  function r(){var r=t.apply(this,arguments)
11092
11093
  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)
11093
- this.textContent=null==t?"":t}}(UP(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
11094
+ this.textContent=null==t?"":t}}(WP(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
11094
11095
  if(arguments.length<1)return(t=this.tween(t))&&t._value
11095
11096
  if(null==e)return this.tween(t,null)
11096
11097
  if("function"!=typeof e)throw new Error
@@ -11099,60 +11100,60 @@ function i(){var i=e.apply(this,arguments)
11099
11100
  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
11100
11101
  for(var n in this.__transition)if(+n!==e)return
11101
11102
  t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id
11102
- if(e+="",arguments.length<2){for(var i,o=BP(this.node(),n).tween,r=0,s=o.length;r<s;++r)if((i=o[r]).name===e)return i.value
11103
- return null}return this.each((null==t?ZP:jP)(n,e,t))},delay:function(e){var t=this._id
11104
- return arguments.length?this.each(("function"==typeof e?nV:iV)(t,e)):BP(this.node(),t).delay},duration:function(e){var t=this._id
11105
- return arguments.length?this.each(("function"==typeof e?oV:rV)(t,e)):BP(this.node(),t).duration},ease:function(e){var t=this._id
11103
+ if(e+="",arguments.length<2){for(var i,o=qP(this.node(),n).tween,r=0,s=o.length;r<s;++r)if((i=o[r]).name===e)return i.value
11104
+ return null}return this.each((null==t?jP:UP)(n,e,t))},delay:function(e){var t=this._id
11105
+ return arguments.length?this.each(("function"==typeof e?iV:oV)(t,e)):qP(this.node(),t).delay},duration:function(e){var t=this._id
11106
+ return arguments.length?this.each(("function"==typeof e?rV:sV)(t,e)):qP(this.node(),t).duration},ease:function(e){var t=this._id
11106
11107
  return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error
11107
- return function(){HP(this,e).ease=t}}(t,e)):BP(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
11108
+ return function(){BP(this,e).ease=t}}(t,e)):qP(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
11108
11109
  return this.each(function(e,t){return function(){var n=t.apply(this,arguments)
11109
11110
  if("function"!=typeof n)throw new Error
11110
- HP(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,i=n._id,o=n.size()
11111
+ BP(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,i=n._id,o=n.size()
11111
11112
  return new Promise((function(r,s){var a={value:s},l={value:function(){0==--o&&r()}}
11112
- n.each((function(){var n=HP(this,i),o=n.on
11113
- 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]:hV[Symbol.iterator]}
11114
- var uV={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
11115
- function pV(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
11116
- return n}iz.prototype.interrupt=function(e){return this.each((function(){qP(this,e)}))},iz.prototype.transition=function(e){var t,n
11117
- e instanceof cV?(t=e._id,e=e._name):(t=dV(),(n=uV).time=kP(),e=null==e?null:e+"")
11118
- 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])&&VP(s,e,t,c,a,n||pV(s,t))
11119
- return new cV(i,this._parents,e,t)}
11120
- var fV=e=>()=>e
11121
- function gV(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 mV(e,t,n){this.k=e,this.x=t,this.y=n}mV.prototype={constructor:mV,scale:function(e){return 1===e?this:new mV(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new mV(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+")"}}
11122
- var vV=new mV(1,0,0)
11123
- function bV(e){for(;!e.__zoom;)if(!(e=e.parentNode))return vV
11124
- return e.__zoom}function wV(e){e.stopImmediatePropagation()}function yV(e){e.preventDefault(),e.stopImmediatePropagation()}function xV(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function kV(){var e=this
11125
- 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 CV(){return this.__zoom||vV}function SV(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function $V(){return navigator.maxTouchPoints||"ontouchstart"in this}function _V(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]
11126
- 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 MV(){var e,t,n,i=xV,o=kV,r=_V,s=SV,a=$V,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=uP,u=BF("start","zoom","end"),p=500,f=150,g=0,m=10
11127
- function v(e){e.property("__zoom",CV).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",_).filter(a).on("touchstart.zoom",M).on("touchmove.zoom",A).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 mV(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
11128
- return i===e.x&&o===e.y?e:new mV(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))
11113
+ n.each((function(){var n=BP(this,i),o=n.on
11114
+ 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]:uV[Symbol.iterator]}
11115
+ var pV={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
11116
+ function fV(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
11117
+ return n}oz.prototype.interrupt=function(e){return this.each((function(){ZP(this,e)}))},oz.prototype.transition=function(e){var t,n
11118
+ e instanceof dV?(t=e._id,e=e._name):(t=hV(),(n=pV).time=CP(),e=null==e?null:e+"")
11119
+ 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])&&LP(s,e,t,c,a,n||fV(s,t))
11120
+ return new dV(i,this._parents,e,t)}
11121
+ var gV=e=>()=>e
11122
+ function mV(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 vV(e,t,n){this.k=e,this.x=t,this.y=n}vV.prototype={constructor:vV,scale:function(e){return 1===e?this:new vV(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new vV(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+")"}}
11123
+ var bV=new vV(1,0,0)
11124
+ function wV(e){for(;!e.__zoom;)if(!(e=e.parentNode))return bV
11125
+ return e.__zoom}function yV(e){e.stopImmediatePropagation()}function xV(e){e.preventDefault(),e.stopImmediatePropagation()}function kV(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function CV(){var e=this
11126
+ 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 SV(){return this.__zoom||bV}function $V(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function _V(){return navigator.maxTouchPoints||"ontouchstart"in this}function MV(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]
11127
+ 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 AV(){var e,t,n,i=kV,o=CV,r=MV,s=$V,a=_V,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=pP,u=qF("start","zoom","end"),p=500,f=150,g=0,m=10
11128
+ function v(e){e.property("__zoom",SV).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",_).filter(a).on("touchstart.zoom",M).on("touchmove.zoom",A).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 vV(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
11129
+ return i===e.x&&o===e.y?e:new vV(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))
11129
11130
  return function(e){if(1===e)e=u
11130
11131
  else{var t=p(e),n=c/t[2]
11131
- e=new mV(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=rz(e)
11132
+ e=new vV(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=sz(e)
11132
11133
  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)
11133
11134
  else{if(o.k===a)return
11134
- n.mouse=[d,o.invert(d)],qP(this),n.start()}yV(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=oz(e.view).on("mousemove.zoom",(function(e){if(yV(e),!s.moved){var t=e.clientX-d,n=e.clientY-h
11135
- s.moved=t*t+n*n>g}s.event(e).zoom("mouse",r(w(s.that.__zoom,s.mouse[0]=rz(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=oz(e).on("dragstart.drag",null)
11136
- t&&(i.on("click.drag",az,sz),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),yV(e),s.event(e).end()}),!0),l=rz(e,o),d=e.clientX,h=e.clientY
11137
- !function(e){var t=e.document.documentElement,n=oz(e).on("dragstart.drag",az,sz)
11138
- "onselectstart"in t?n.on("selectstart.drag",az,sz):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(e.view),wV(e),s.mouse=[l,this.__zoom.invert(l)],qP(this),s.start()}}function _(e,...t){if(i.apply(this,arguments)){var n=this.__zoom,s=rz(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)
11139
- yV(e),d>0?oz(this).transition().duration(d).call(x,h,s,e):oz(this).call(v.transform,h,s,e)}}function M(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)
11140
- for(wV(n),s=0;s<d;++s)l=[l=rz(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)
11141
- e&&(e=clearTimeout(e)),r&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),qP(this),h.start())}}function A(e,...t){if(this.__zooming){var n,i,o,s,a=k(this,t).event(e),l=e.changedTouches,d=l.length
11142
- for(yV(e),n=0;n<d;++n)o=rz(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)
11135
+ n.mouse=[d,o.invert(d)],ZP(this),n.start()}xV(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=rz(e.view).on("mousemove.zoom",(function(e){if(xV(e),!s.moved){var t=e.clientX-d,n=e.clientY-h
11136
+ s.moved=t*t+n*n>g}s.event(e).zoom("mouse",r(w(s.that.__zoom,s.mouse[0]=sz(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=rz(e).on("dragstart.drag",null)
11137
+ t&&(i.on("click.drag",lz,az),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),xV(e),s.event(e).end()}),!0),l=sz(e,o),d=e.clientX,h=e.clientY
11138
+ !function(e){var t=e.document.documentElement,n=rz(e).on("dragstart.drag",lz,az)
11139
+ "onselectstart"in t?n.on("selectstart.drag",lz,az):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(e.view),yV(e),s.mouse=[l,this.__zoom.invert(l)],ZP(this),s.start()}}function _(e,...t){if(i.apply(this,arguments)){var n=this.__zoom,s=sz(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)
11140
+ xV(e),d>0?rz(this).transition().duration(d).call(x,h,s,e):rz(this).call(v.transform,h,s,e)}}function M(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)
11141
+ for(yV(n),s=0;s<d;++s)l=[l=sz(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)
11142
+ e&&(e=clearTimeout(e)),r&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),ZP(this),h.start())}}function A(e,...t){if(this.__zooming){var n,i,o,s,a=k(this,t).event(e),l=e.changedTouches,d=l.length
11143
+ for(xV(e),n=0;n<d;++n)o=sz(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)
11143
11144
  if(i=a.that.__zoom,a.touch1){var h=a.touch0[0],u=a.touch0[1],p=a.touch1[0],f=a.touch1[1],g=(g=p[0]-h[0])*g+(g=p[1]-h[1])*g,m=(m=f[0]-u[0])*m+(m=f[1]-u[1])*m
11144
11145
  i=b(i,Math.sqrt(g/m)),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
11145
11146
  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
11146
- for(wV(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
11147
+ for(yV(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
11147
11148
  if(s.touch1&&!s.touch0&&(s.touch0=s.touch1,delete s.touch1),s.touch0)s.touch0[1]=this.__zoom.invert(s.touch0[0])
11148
- else if(s.end(),2===s.taps&&(r=rz(r,this),Math.hypot(t[0]-r[0],t[1]-r[1])<m)){var c=oz(this).on("dblclick.zoom")
11149
+ else if(s.end(),2===s.taps&&(r=sz(r,this),Math.hypot(t[0]-r[0],t[1]-r[1])<m)){var c=rz(this).on("dblclick.zoom")
11149
11150
  c&&c.apply(this,arguments)}}}return v.transform=function(e,t,n,i){var o=e.selection?e.selection():e
11150
- o.property("__zoom",CV),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
11151
+ o.property("__zoom",SV),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
11151
11152
  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
11152
- return r(vV.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=oz(this.that).datum()
11153
- u.call(e,this.that,new gV(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:fV(+e),v):s},v.filter=function(e){return arguments.length?(i="function"==typeof e?e:fV(!!e),v):i},v.touchable=function(e){return arguments.length?(a="function"==typeof e?e:fV(!!e),v):a},v.extent=function(e){return arguments.length?(o="function"==typeof e?e:fV([[+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)
11154
- return e===u?v:e},v.clickDistance=function(e){return arguments.length?(g=(e=+e)*e,v):Math.sqrt(g)},v.tapDistance=function(e){return arguments.length?(m=+e,v):m},v}bV.prototype=mV.prototype
11155
- const AV=W`
11153
+ return r(bV.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=rz(this.that).datum()
11154
+ u.call(e,this.that,new mV(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:gV(+e),v):s},v.filter=function(e){return arguments.length?(i="function"==typeof e?e:gV(!!e),v):i},v.touchable=function(e){return arguments.length?(a="function"==typeof e?e:gV(!!e),v):a},v.extent=function(e){return arguments.length?(o="function"==typeof e?e:gV([[+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)
11155
+ return e===u?v:e},v.clickDistance=function(e){return arguments.length?(g=(e=+e)*e,v):Math.sqrt(g)},v.tapDistance=function(e){return arguments.length?(m=+e,v):m},v}wV.prototype=vV.prototype
11156
+ const IV=W`
11156
11157
  <div class="wafer-map-container">
11157
11158
  <svg class="svg-root">
11158
11159
  <g ${De("zoomContainer")} transform=${e=>e.transform.toString()}>
@@ -11182,7 +11183,7 @@ const AV=W`
11182
11183
  />
11183
11184
  </svg>
11184
11185
  </div>
11185
- `,IV=we`
11186
+ `,EV=we`
11186
11187
  :host {
11187
11188
  display: inline-block;
11188
11189
  width: 500px;
@@ -11266,68 +11267,68 @@ const AV=W`
11266
11267
  outline-width: 0px;
11267
11268
  }
11268
11269
  `
11269
- function EV(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function OV(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function TV(e){let t,n,i
11270
+ function OV(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function TV(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function RV(e){let t,n,i
11270
11271
  function o(e,i,o=0,r=e.length){if(o<r){if(0!==t(i,i))return r
11271
11272
  do{const t=o+r>>>1
11272
- n(e[t],i)<0?o=t+1:r=t}while(o<r)}return o}return 2!==e.length?(t=EV,n=(t,n)=>EV(e(t),n),i=(t,n)=>e(t)-n):(t=e===EV||e===OV?e:RV,n=e,i=e),{left:o,center:function(e,t,n=0,r=e.length){const s=o(e,t,n,r-1)
11273
+ n(e[t],i)<0?o=t+1:r=t}while(o<r)}return o}return 2!==e.length?(t=OV,n=(t,n)=>OV(e(t),n),i=(t,n)=>e(t)-n):(t=e===OV||e===TV?e:DV,n=e,i=e),{left:o,center:function(e,t,n=0,r=e.length){const s=o(e,t,n,r-1)
11273
11274
  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
11274
11275
  do{const t=o+r>>>1
11275
- n(e[t],i)<=0?o=t+1:r=t}while(o<r)}return o}}}function RV(){return 0}function DV(e){return null===e?NaN:+e}const FV=TV(EV).right
11276
- TV(DV).center
11277
- var NV=FV
11278
- class zV extends Map{constructor(e,t=VV){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(PV(this,e))}has(e){return super.has(PV(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const i=t(n)
11276
+ n(e[t],i)<=0?o=t+1:r=t}while(o<r)}return o}}}function DV(){return 0}function FV(e){return null===e?NaN:+e}const NV=RV(OV).right
11277
+ RV(FV).center
11278
+ var zV=NV
11279
+ class PV extends Map{constructor(e,t=LV){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(VV(this,e))}has(e){return super.has(VV(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const i=t(n)
11279
11280
  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)
11280
11281
  e.has(i)&&(n=e.get(i),e.delete(i))
11281
- return n}(this,e))}}function PV({_intern:e,_key:t},n){const i=t(n)
11282
- return e.has(i)?e.get(i):n}function VV(e){return null!==e&&"object"==typeof e?e.valueOf():e}const LV=Math.sqrt(50),HV=Math.sqrt(10),BV=Math.sqrt(2)
11283
- function qV(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>=LV?10:r>=HV?5:r>=BV?2:1
11282
+ return n}(this,e))}}function VV({_intern:e,_key:t},n){const i=t(n)
11283
+ return e.has(i)?e.get(i):n}function LV(e){return null!==e&&"object"==typeof e?e.valueOf():e}const HV=Math.sqrt(50),BV=Math.sqrt(10),qV=Math.sqrt(2)
11284
+ function ZV(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>=HV?10:r>=BV?5:r>=qV?2:1
11284
11285
  let a,l,c
11285
- 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?qV(e,t,2*n):[a,l,c]}function ZV(e,t,n){return qV(e=+e,t=+t,n=+n)[2]}function jV(e,t,n=DV){if((i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return+n(e[0],0,e)
11286
+ 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?ZV(e,t,2*n):[a,l,c]}function jV(e,t,n){return ZV(e=+e,t=+t,n=+n)[2]}function UV(e,t,n=FV){if((i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return+n(e[0],0,e)
11286
11287
  if(t>=1)return+n(e[i-1],i-1,e)
11287
11288
  var i,o=(i-1)*t,r=Math.floor(o),s=+n(e[r],r,e)
11288
- return s+(+n(e[r+1],r+1,e)-s)*(o-r)}}function UV(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n
11289
+ return s+(+n(e[r+1],r+1,e)-s)*(o-r)}}function WV(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n
11289
11290
  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
11290
- return r}function WV(e,t){switch(arguments.length){case 0:break
11291
+ return r}function GV(e,t){switch(arguments.length){case 0:break
11291
11292
  case 1:this.range(e)
11292
11293
  break
11293
- default:this.range(t).domain(e)}return this}const GV=Symbol("implicit")
11294
- function KV(){var e=new zV,t=[],n=[],i=GV
11294
+ default:this.range(t).domain(e)}return this}const KV=Symbol("implicit")
11295
+ function JV(){var e=new PV,t=[],n=[],i=KV
11295
11296
  function o(o){let r=e.get(o)
11296
- if(void 0===r){if(i!==GV)return i
11297
+ if(void 0===r){if(i!==KV)return i
11297
11298
  e.set(o,r=t.push(o)-1)}return n[r%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice()
11298
- t=[],e=new zV
11299
+ t=[],e=new PV
11299
11300
  for(const i of n)e.has(i)||e.set(i,t.push(i)-1)
11300
- 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 KV(t,n).unknown(i)},WV.apply(o,arguments),o}function JV(){var e,t,n=KV().unknown(void 0),i=n.domain,o=n.range,r=0,s=1,a=!1,l=0,c=0,d=.5
11301
+ 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 JV(t,n).unknown(i)},GV.apply(o,arguments),o}function XV(){var e,t,n=JV().unknown(void 0),i=n.domain,o=n.range,r=0,s=1,a=!1,l=0,c=0,d=.5
11301
11302
  function h(){var n=i().length,h=s<r,u=h?s:r,p=h?r:s
11302
11303
  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))
11303
- var f=UV(n).map((function(t){return u+e*t}))
11304
- 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 JV(i(),[r,s]).round(a).paddingInner(l).paddingOuter(c).align(d)},WV.apply(h(),arguments)}function XV(e){return+e}var YV=[0,1]
11305
- function QV(e){return e}function eL(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})
11306
- var n}function tL(e,t,n){var i=e[0],o=e[1],r=t[0],s=t[1]
11307
- return o<i?(i=eL(o,i),r=n(s,r)):(i=eL(i,o),r=n(r,s)),function(e){return r(i(e))}}function nL(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),r=new Array(i),s=-1
11308
- for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=eL(e[s],e[s+1]),r[s]=n(t[s],t[s+1])
11309
- return function(t){var n=NV(e,t,1,i)-1
11310
- return r[n](o[n](t))}}function iL(){var e,t,n,i,o,r,s=YV,a=YV,l=eP,c=QV
11304
+ var f=WV(n).map((function(t){return u+e*t}))
11305
+ 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 XV(i(),[r,s]).round(a).paddingInner(l).paddingOuter(c).align(d)},GV.apply(h(),arguments)}function YV(e){return+e}var QV=[0,1]
11306
+ function eL(e){return e}function tL(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})
11307
+ var n}function nL(e,t,n){var i=e[0],o=e[1],r=t[0],s=t[1]
11308
+ return o<i?(i=tL(o,i),r=n(s,r)):(i=tL(i,o),r=n(r,s)),function(e){return r(i(e))}}function iL(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),r=new Array(i),s=-1
11309
+ for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=tL(e[s],e[s+1]),r[s]=n(t[s],t[s+1])
11310
+ return function(t){var n=zV(e,t,1,i)-1
11311
+ return r[n](o[n](t))}}function oL(){var e,t,n,i,o,r,s=QV,a=QV,l=tP,c=eL
11311
11312
  function d(){var e,t,n,l=Math.min(s.length,a.length)
11312
- return c!==QV&&(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?nL:tL,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),Kz)))(n)))},h.domain=function(e){return arguments.length?(s=Array.from(e,XV),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=tP,d()},h.clamp=function(e){return arguments.length?(c=!!e||QV,d()):c!==QV},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 oL(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
11313
+ return c!==eL&&(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?iL:nL,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),Jz)))(n)))},h.domain=function(e){return arguments.length?(s=Array.from(e,YV),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=nP,d()},h.clamp=function(e){return arguments.length?(c=!!e||eL,d()):c!==eL},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 rL(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
11313
11314
  var n,i=e.slice(0,n)
11314
- return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function rL(e){return(e=oL(Math.abs(e)))?e[1]:NaN}var sL,aL=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
11315
- function lL(e){if(!(t=aL.exec(e)))throw new Error("invalid format: "+e)
11315
+ return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function sL(e){return(e=rL(Math.abs(e)))?e[1]:NaN}var aL,lL=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
11316
+ function cL(e){if(!(t=lL.exec(e)))throw new Error("invalid format: "+e)
11316
11317
  var t
11317
- return new cL({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 cL(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 dL(e,t){var n=oL(e,t)
11318
+ return new dL({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 dL(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 hL(e,t){var n=rL(e,t)
11318
11319
  if(!n)return e+""
11319
11320
  var i=n[0],o=n[1]
11320
- 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")}lL.prototype=cL.prototype,cL.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}
11321
- var hL={"%":(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)=>dL(100*e,t),r:dL,s:function(e,t){var n=oL(e,t)
11321
+ 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")}cL.prototype=dL.prototype,dL.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}
11322
+ var uL={"%":(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)=>hL(100*e,t),r:hL,s:function(e,t){var n=rL(e,t)
11322
11323
  if(!n)return e+""
11323
- var i=n[0],o=n[1],r=o-(sL=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length
11324
- 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")+oL(e,Math.max(0,t+r-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
11325
- function uL(e){return e}var pL,fL,gL,mL=Array.prototype.map,vL=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
11326
- function bL(e){var t,n,i=void 0===e.grouping||void 0===e.thousands?uL:(t=mL.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]
11327
- 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?uL:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(mL.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+""
11328
- function h(e){var t=(e=lL(e)).fill,n=e.align,h=e.sign,u=e.symbol,p=e.zero,f=e.width,g=e.comma,m=e.precision,v=e.trim,b=e.type
11329
- "n"===b?(g=!0,b="g"):hL[b]||(void 0===m&&(m=12),v=!0,b="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=")
11330
- var w="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",y="$"===u?r:/[%p]/.test(b)?l:"",x=hL[b],k=/[defgprs%]/.test(b)
11324
+ var i=n[0],o=n[1],r=o-(aL=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length
11325
+ 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")+rL(e,Math.max(0,t+r-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
11326
+ function pL(e){return e}var fL,gL,mL,vL=Array.prototype.map,bL=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
11327
+ function wL(e){var t,n,i=void 0===e.grouping||void 0===e.thousands?pL:(t=vL.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]
11328
+ 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?pL:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(vL.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+""
11329
+ function h(e){var t=(e=cL(e)).fill,n=e.align,h=e.sign,u=e.symbol,p=e.zero,f=e.width,g=e.comma,m=e.precision,v=e.trim,b=e.type
11330
+ "n"===b?(g=!0,b="g"):uL[b]||(void 0===m&&(m=12),v=!0,b="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=")
11331
+ var w="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",y="$"===u?r:/[%p]/.test(b)?l:"",x=uL[b],k=/[defgprs%]/.test(b)
11331
11332
  function C(e){var o,r,l,u=w,C=y
11332
11333
  if("c"===b)C=x(e)+C,e=""
11333
11334
  else{var S=(e=+e)<0||1/e<0
@@ -11336,7 +11337,7 @@ break
11336
11337
  case"0":0===o&&(o=i),t=i
11337
11338
  break
11338
11339
  default:if(!+e[i])break e
11339
- 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?vL[8+sL/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)
11340
+ 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?bL[8+aL/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)
11340
11341
  break}}g&&!p&&(e=i(e,1/0))
11341
11342
  var $=u.length+e.length+C.length,_=$<f?new Array(f-$+1).join(t):""
11342
11343
  switch(g&&p&&(e=i(_+e,_.length?f-C.length:1/0),_=""),n){case"<":e=u+e+C+_
@@ -11345,19 +11346,19 @@ case"=":e=u+_+e+C
11345
11346
  break
11346
11347
  case"^":e=_.slice(0,$=_.length>>1)+u+e+C+_.slice($)
11347
11348
  break
11348
- default:e=_+u+e+C}return a(e)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var n=h(((e=lL(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(rL(t)/3))),o=Math.pow(10,-i),r=vL[8+i/3]
11349
- return function(e){return n(o*e)+r}}}}function wL(e,t,n,i){var o,r=function(e,t,n){n=+n
11350
- const i=(t=+t)<(e=+e),o=i?ZV(t,e,n):ZV(e,t,n)
11349
+ default:e=_+u+e+C}return a(e)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var n=h(((e=cL(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(sL(t)/3))),o=Math.pow(10,-i),r=bL[8+i/3]
11350
+ return function(e){return n(o*e)+r}}}}function yL(e,t,n,i){var o,r=function(e,t,n){n=+n
11351
+ const i=(t=+t)<(e=+e),o=i?jV(t,e,n):jV(e,t,n)
11351
11352
  return(i?-1:1)*(o<0?1/-o:o)}(e,t,n)
11352
- switch((i=lL(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t))
11353
- return null!=i.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(rL(t)/3)))-rL(Math.abs(e)))}(r,s))||(i.precision=o),gL(i,s)
11354
- 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,rL(t)-rL(e))+1}(r,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=o-("e"===i.type))
11353
+ switch((i=cL(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t))
11354
+ return null!=i.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(sL(t)/3)))-sL(Math.abs(e)))}(r,s))||(i.precision=o),mL(i,s)
11355
+ 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,sL(t)-sL(e))+1}(r,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=o-("e"===i.type))
11355
11356
  break
11356
- case"f":case"%":null!=i.precision||isNaN(o=function(e){return Math.max(0,-rL(Math.abs(e)))}(r))||(i.precision=o-2*("%"===i.type))}return fL(i)}function yL(e){var t=e.domain
11357
+ case"f":case"%":null!=i.precision||isNaN(o=function(e){return Math.max(0,-sL(Math.abs(e)))}(r))||(i.precision=o-2*("%"===i.type))}return gL(i)}function xL(e){var t=e.domain
11357
11358
  return e.ticks=function(e){var n=t()
11358
11359
  return function(e,t,n){if(!((n=+n)>0))return[]
11359
11360
  if((e=+e)==(t=+t))return[e]
11360
- const i=t<e,[o,r,s]=i?qV(t,e,n):qV(e,t,n)
11361
+ const i=t<e,[o,r,s]=i?ZV(t,e,n):ZV(e,t,n)
11361
11362
  if(!(r>=o))return[]
11362
11363
  const a=r-o+1,l=new Array(a)
11363
11364
  if(i)if(s<0)for(let e=0;e<a;++e)l[e]=(r-e)/-s
@@ -11365,42 +11366,42 @@ else for(let e=0;e<a;++e)l[e]=(r-e)*s
11365
11366
  else if(s<0)for(let e=0;e<a;++e)l[e]=(o+e)/-s
11366
11367
  else for(let e=0;e<a;++e)l[e]=(o+e)*s
11367
11368
  return l}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var i=t()
11368
- return wL(i[0],i[i.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10)
11369
+ return yL(i[0],i[i.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10)
11369
11370
  var i,o,r=t(),s=0,a=r.length-1,l=r[s],c=r[a],d=10
11370
- for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);d-- >0;){if((o=ZV(l,c,n))===i)return r[s]=l,r[a]=c,t(r)
11371
+ for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);d-- >0;){if((o=jV(l,c,n))===i)return r[s]=l,r[a]=c,t(r)
11371
11372
  if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o
11372
11373
  else{if(!(o<0))break
11373
- l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return e},e}function xL(){var e=iL()(QV,QV)
11374
- return e.copy=function(){return function(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}(e,xL())},WV.apply(e,arguments),yL(e)}function kL(){var e,t=[],n=[],i=[]
11374
+ l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return e},e}function kL(){var e=oL()(eL,eL)
11375
+ return e.copy=function(){return function(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}(e,kL())},GV.apply(e,arguments),xL(e)}function CL(){var e,t=[],n=[],i=[]
11375
11376
  function o(){var e=0,o=Math.max(1,n.length)
11376
- for(i=new Array(o-1);++e<o;)i[e-1]=jV(t,e/o)
11377
- return r}function r(t){return null==t||isNaN(t=+t)?e:n[NV(i,t)]}return r.invertExtent=function(e){var o=n.indexOf(e)
11377
+ for(i=new Array(o-1);++e<o;)i[e-1]=UV(t,e/o)
11378
+ return r}function r(t){return null==t||isNaN(t=+t)?e:n[zV(i,t)]}return r.invertExtent=function(e){var o=n.indexOf(e)
11378
11379
  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()
11379
11380
  t=[]
11380
11381
  for(let n of e)null==n||isNaN(n=+n)||t.push(n)
11381
- return t.sort(EV),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 kL().domain(t).range(n).unknown(e)},WV.apply(r,arguments)}pL=bL({thousands:",",grouping:[3],currency:["$",""]}),fL=pL.format,gL=pL.formatPrefix
11382
- const CL="bottom-left",SL="bottom-right",$L="top-left",_L="top-right",ML="top",AL="show",IL="hide",EL="linear",OL="ordinal"
11383
- class TL{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}
11382
+ return t.sort(OV),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 CL().domain(t).range(n).unknown(e)},GV.apply(r,arguments)}fL=wL({thousands:",",grouping:[3],currency:["$",""]}),gL=fL.format,mL=fL.formatPrefix
11383
+ const SL="bottom-left",$L="bottom-right",_L="top-left",ML="top-right",AL="top",IL="show",EL="hide",OL="linear",TL="ordinal"
11384
+ class RL{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}
11384
11385
  this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(e,this._margin)
11385
11386
  const o=Math.min(this._containerDimensions.width,this._containerDimensions.height)
11386
11387
  this._radius=o/2,this.updateScales()}updateScales(){const e=Math.min(this._containerDimensions.width,this._containerDimensions.height),t=this.calculateGridDimensions(this.wafermap.dies),n=this.wafermap.quadrant
11387
11388
  this._horizontalScale=this.createHorizontalScale(n,t,e),this._invertedHorizontalScale=this.createInvertedHorizontalScale(n,t,e),this._verticalScale=this.createVerticalScale(n,t,e),this._invertedVerticalScale=this.createInvertedVerticalScale(n,t,e),this._dieDimensions={width:this.horizontalScale.bandwidth(),height:this.verticalScale.bandwidth()}}calculateGridDimensions(e){if(0===e.length||void 0===e[0])return{origin:{x:0,y:0},rows:0,cols:0}
11388
11389
  const t={x:e[0].x,y:e[0].y},n={x:e[0].x,y:e[0].y}
11389
11390
  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)
11390
- 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=JV().domain(UV(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
11391
- return e===CL||e===$L?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(e,t,n){const i=kL().domain([0,n])
11392
- return e===CL||e===$L?i.range(UV(t.origin.x,t.origin.x+t.cols)):i.range(UV(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,n){const i=JV().domain(UV(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
11393
- return e===CL||e===SL?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(e,t,n){const i=kL().domain([0,n])
11394
- return e===CL||e===SL?i.range(UV(t.origin.y,t.origin.y+t.rows).reverse()):i.range(UV(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 RL{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)
11391
+ 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=XV().domain(WV(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
11392
+ return e===SL||e===_L?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(e,t,n){const i=CL().domain([0,n])
11393
+ return e===SL||e===_L?i.range(WV(t.origin.x,t.origin.x+t.cols)):i.range(WV(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,n){const i=XV().domain(WV(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
11394
+ return e===SL||e===$L?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(e,t,n){const i=CL().domain([0,n])
11395
+ return e===SL||e===$L?i.range(WV(t.origin.y,t.origin.y+t.rows).reverse()):i.range(WV(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 DL{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)
11395
11396
  const e=this.dataManager.margin,t=this.dataManager.horizontalScale,n=this.dataManager.verticalScale,i=this.wafermap.colorScaleMode,o=this.wafermap.highlightedValues,r=this.wafermap.maxCharacters,s=this.wafermap.dieLabelsHidden,a=this.wafermap.dieLabelsSuffix
11396
11397
  this._diesRenderInfo=[]
11397
11398
  for(const l of this.wafermap.dies){const c=t(l.x)??0,d=n(l.y)??0
11398
- this._diesRenderInfo.push({x:c+e.right,y:d+e.top,fillStyle:this.calculateFillStyle(l.value,i,o),text:this.buildLabel(l.value,r,s,a)})}}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?xL().domain(e.values.map((e=>+e))).range(e.colors):KV().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,n,i){if(n||!this.dieHasData(e))return""
11399
+ this._diesRenderInfo.push({x:c+e.right,y:d+e.top,fillStyle:this.calculateFillStyle(l.value,i,o),text:this.buildLabel(l.value,r,s,a)})}}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?kL().domain(e.values.map((e=>+e))).range(e.colors):JV().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,n,i){if(n||!this.dieHasData(e))return""
11399
11400
  const o=`${e}${i}`
11400
- return o.length>t?`${o.substring(0,t)}…`:o}calculateOpacity(e,t){return t.length>0&&!t.some((t=>t===e))?this.nonHighlightedOpacity:1}isColorScaleLinear(e){return e===EL}isColorScaleOrdinal(e){return e===OL}calculateFillStyle(e,t,n){let i=this.emptyDieColor
11401
+ return o.length>t?`${o.substring(0,t)}…`:o}calculateOpacity(e,t){return t.length>0&&!t.some((t=>t===e))?this.nonHighlightedOpacity:1}isColorScaleLinear(e){return e===OL}isColorScaleOrdinal(e){return e===TL}calculateFillStyle(e,t,n){let i=this.emptyDieColor
11401
11402
  if(this.dieHasData(e)&&(isNaN(+e)?i=this.nanDieColor:this.isColorScaleLinear(t)?i=this.d3ColorScale(+e):this.isColorScaleOrdinal(t)&&(i=this.d3ColorScale(e))),void 0===i)return this.emptyDieColor
11402
11403
  let o=jo(i)
11403
- return null===o?this.emptyDieColor:(o=new zo(o.r,o.g,o.b,this.calculateOpacity(e,n)),o.toStringWebRGBA())}}class DL{constructor(e){this.wafermap=e,this.computations=new TL(e),this.prerendering=new RL(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 FL{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?IL:AL,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x),t=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y),n=this.wafermap.transform.apply([e+this.wafermap.dataManager.margin.left,t+this.wafermap.dataManager.margin.top])
11404
+ return null===o?this.emptyDieColor:(o=new zo(o.r,o.g,o.b,this.calculateOpacity(e,n)),o.toStringWebRGBA())}}class FL{constructor(e){this.wafermap=e,this.computations=new RL(e),this.prerendering=new DL(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 NL{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?EL:IL,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x),t=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y),n=this.wafermap.transform.apply([e+this.wafermap.dataManager.margin.left,t+this.wafermap.dataManager.margin.top])
11404
11405
  return`translate(${n[0]}, ${n[1]})`}return""}renderDies(){const e=this.wafermap.canvasContext,t=this.wafermap.dataManager.dieDimensions.width,n=this.wafermap.dataManager.dieDimensions.height,i=this.wafermap.transform.invert([0,0]),o=this.wafermap.transform.invert([this.wafermap.canvas.width,this.wafermap.canvas.height])
11405
11406
  i[0]-=t,i[1]-=n
11406
11407
  for(const r of this.dies)this.isDieVisible(r,i,o)&&(e.fillStyle=r.fillStyle,e.fillRect(r.x,r.y,t,n))}renderText(){if(this.wafermap.dieLabelsHidden)return
@@ -11409,19 +11410,19 @@ if(e*t*(this.wafermap.transform.k||1)>=this.minDieDim){const n=this.wafermap.dat
11409
11410
  i.font=`${n.toString()}px sans-serif`,i.fillStyle="#ffffff",i.textAlign="center",i.lineCap="butt"
11410
11411
  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])
11411
11412
  r[0]-=e,r[1]-=t
11412
- 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 NL{constructor(e){this.wafermap=e,this.zoomTransform=vV,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100}createZoomBehavior(){this.zoomBehavior=MV().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=>bV(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)})),this.zoomBehavior(oz(this.wafermap.canvas))}rescale(e){const t=e.transform
11413
- t.k===this.minScale?(this.zoomTransform=vV,this.zoomBehavior.transform(oz(this.wafermap.canvas),vV)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}getZoomMax(e,t){return Math.ceil(t/e*100)}}class zL{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
11413
+ 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 zL{constructor(e){this.wafermap=e,this.zoomTransform=bV,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100}createZoomBehavior(){this.zoomBehavior=AV().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=>wV(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)})),this.zoomBehavior(rz(this.wafermap.canvas))}rescale(e){const t=e.transform
11414
+ t.k===this.minScale?(this.zoomTransform=bV,this.zoomBehavior.transform(rz(this.wafermap.canvas),bV)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}getZoomMax(e,t){return Math.ceil(t/e*100)}}class PL{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
11414
11415
  if(!this.hoversOverDie(this.wafermap,t))return void(this.wafermap.hoverDie=void 0)
11415
11416
  const n=this.wafermap.transform.invert([t.x,t.y]),i=this.calculateDieCoordinates(this.wafermap,{x:n[0],y:n[1]})
11416
- this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(i)}mouseout(){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e,t){const n=e.quadrant,i=n===CL||n===$L?Math.floor:Math.ceil,o=n===$L||n===_L?Math.floor:Math.ceil
11417
+ this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(i)}mouseout(){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e,t){const n=e.quadrant,i=n===SL||n===_L?Math.floor:Math.ceil,o=n===_L||n===ML?Math.floor:Math.ceil
11417
11418
  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
11418
11419
  let i=0
11419
11420
  for(const e of n)i+=e
11420
- return i>0}}class PL{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 NL(e),this.hoverHandler=new zL(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 VL=["canvasWidth","canvasHeight","quadrant","dies","maxCharacters","colorScale","colorScaleMode","highlightedValues","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
11421
- class LL extends $R{constructor(e){super(VL),this.wafermap=e,this.updateQueued=!1}get requiresEventsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")||this.isTracked("quadrant")||this.isTracked("dies")||this.isTracked("maxCharacters")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("highlightedValues")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")||this.isTracked("transform")}get requiresContainerDimensionsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")}get requiresScalesUpdate(){return this.isTracked("quadrant")||this.isTracked("dies")}get requiresLabelsFontSizeUpdate(){return this.isTracked("maxCharacters")}get requiresDiesRenderInfoUpdate(){return this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("highlightedValues")||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 HL extends zt{constructor(){super(...arguments),this.waferMapUpdateTracker=new LL(this),this.quadrant=$L,this.orientation=ML,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=EL,this.dataManager=new DL(this),this.renderer=new FL(this),this.renderQueued=!1,this.transform=vV,this.hoverTransform="",this.hoverOpacity=IL,this.hoverWidth=0,this.hoverHeight=0,this.highlightedValues=[],this.dies=[],this.colorScale={colors:[],values:[]},this.eventCoordinator=new PL(this),this.resizeObserver=this.createResizeObserver()}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.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]
11421
+ return i>0}}class VL{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 zL(e),this.hoverHandler=new PL(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 LL=["canvasWidth","canvasHeight","quadrant","dies","maxCharacters","colorScale","colorScaleMode","highlightedValues","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
11422
+ class HL extends $R{constructor(e){super(LL),this.wafermap=e,this.updateQueued=!1}get requiresEventsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")||this.isTracked("quadrant")||this.isTracked("dies")||this.isTracked("maxCharacters")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("highlightedValues")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")||this.isTracked("transform")}get requiresContainerDimensionsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")}get requiresScalesUpdate(){return this.isTracked("quadrant")||this.isTracked("dies")}get requiresLabelsFontSizeUpdate(){return this.isTracked("maxCharacters")}get requiresDiesRenderInfoUpdate(){return this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("highlightedValues")||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 BL extends zt{constructor(){super(...arguments),this.waferMapUpdateTracker=new HL(this),this.quadrant=_L,this.orientation=AL,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=OL,this.dataManager=new FL(this),this.renderer=new NL(this),this.renderQueued=!1,this.transform=bV,this.hoverTransform="",this.hoverOpacity=EL,this.hoverWidth=0,this.hoverHeight=0,this.highlightedValues=[],this.dies=[],this.colorScale={colors:[],values:[]},this.eventCoordinator=new VL(this),this.resizeObserver=this.createResizeObserver()}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.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]
11422
11423
  if(void 0===t)return
11423
11424
  const{height:n,width:i}=t.contentRect
11424
- this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}))}quadrantChanged(){this.waferMapUpdateTracker.track("quadrant"),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()}highlightedValuesChanged(){this.waferMapUpdateTracker.track("highlightedValues"),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],HL.prototype,"quadrant",void 0),e([se],HL.prototype,"orientation",void 0),e([se({attribute:"max-characters",converter:oe})],HL.prototype,"maxCharacters",void 0),e([se({attribute:"die-labels-hidden",mode:"boolean"})],HL.prototype,"dieLabelsHidden",void 0),e([se({attribute:"die-labels-suffix"})],HL.prototype,"dieLabelsSuffix",void 0),e([se({attribute:"color-scale-mode"})],HL.prototype,"colorScaleMode",void 0),e([m],HL.prototype,"canvasWidth",void 0),e([m],HL.prototype,"canvasHeight",void 0),e([m],HL.prototype,"transform",void 0),e([m],HL.prototype,"hoverTransform",void 0),e([m],HL.prototype,"hoverOpacity",void 0),e([m],HL.prototype,"hoverWidth",void 0),e([m],HL.prototype,"hoverHeight",void 0),e([m],HL.prototype,"hoverDie",void 0),e([m],HL.prototype,"highlightedValues",void 0),e([m],HL.prototype,"dies",void 0),e([m],HL.prototype,"colorScale",void 0)
11425
- const BL=HL.compose({baseName:"wafer-map",template:AV,styles:IV})
11426
- mi.getOrCreate().withPrefix("nimble").register(BL()),mi.tagFor(HL)}()
11425
+ this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}))}quadrantChanged(){this.waferMapUpdateTracker.track("quadrant"),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()}highlightedValuesChanged(){this.waferMapUpdateTracker.track("highlightedValues"),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],BL.prototype,"quadrant",void 0),e([se],BL.prototype,"orientation",void 0),e([se({attribute:"max-characters",converter:oe})],BL.prototype,"maxCharacters",void 0),e([se({attribute:"die-labels-hidden",mode:"boolean"})],BL.prototype,"dieLabelsHidden",void 0),e([se({attribute:"die-labels-suffix"})],BL.prototype,"dieLabelsSuffix",void 0),e([se({attribute:"color-scale-mode"})],BL.prototype,"colorScaleMode",void 0),e([m],BL.prototype,"canvasWidth",void 0),e([m],BL.prototype,"canvasHeight",void 0),e([m],BL.prototype,"transform",void 0),e([m],BL.prototype,"hoverTransform",void 0),e([m],BL.prototype,"hoverOpacity",void 0),e([m],BL.prototype,"hoverWidth",void 0),e([m],BL.prototype,"hoverHeight",void 0),e([m],BL.prototype,"hoverDie",void 0),e([m],BL.prototype,"highlightedValues",void 0),e([m],BL.prototype,"dies",void 0),e([m],BL.prototype,"colorScale",void 0)
11426
+ const qL=BL.compose({baseName:"wafer-map",template:IV,styles:EV})
11427
+ mi.getOrCreate().withPrefix("nimble").register(qL()),mi.tagFor(BL)}()
11427
11428
  //# sourceMappingURL=all-components-bundle.min.js.map