@hpcc-js/composite 3.3.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +12 -12
- package/src/__package__.ts +3 -3
- package/types/__package__.d.ts +3 -3
package/dist/index.umd.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.cjs","names":["HTMLWidget","FAChar","Utility","Platform","Legend","SVGWidget","Database","Palette","ProgressBar","ToggleButton","Text","Button","Spacer","TitleBar","Table","IconBar","exports","obj: any","state: any"],"sources":["../src/__package__.ts","../../layout/dist/index.js","../src/Utility.ts","../src/MultiChart.ts","../src/ChartPanel.ts","../src/Dermatology.ts","../src/MegaChart.ts","../src/Persist.ts"],"sourcesContent":["export const PKG_NAME = \"@hpcc-js/composite\";\nexport const PKG_VERSION = \"3.1.1\";\nexport const BUILD_VERSION = \"3.2.1\";\n","import { Button, Database, FAChar, HTMLWidget, IconBar, Palette, Platform, ProgressBar, SVGWidget, Spacer, Text, TitleBar, ToggleButton, Utility, d3Event, dispatch, drag, format, formatLocale, formatPrefix, formatSpecifier, scaleLinear, scaleOrdinal, select, selectAll, sum } from \"@hpcc-js/common\";\nimport { Table } from \"@hpcc-js/dgrid\";\nimport { instanceOfIHighlight } from \"@hpcc-js/api\";\n\n//#region rolldown:runtime\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __commonJS = (cb, mod) => function() {\n\treturn mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {\n\t\tkey = keys[i];\n\t\tif (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: ((k$1) => from[k$1]).bind(null, key),\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", {\n\tvalue: mod,\n\tenumerable: true\n}) : target, mod));\n\n//#endregion\n//#region src/__package__.ts\nconst PKG_NAME = \"@hpcc-js/layout\";\nconst PKG_VERSION = \"3.1.1\";\nconst BUILD_VERSION = \"3.2.1\";\n\n//#endregion\n//#region src/AbsoluteSurface.ts\nvar AbsoluteSurface = class extends HTMLWidget {\n\tconstructor() {\n\t\tsuper();\n\t\tthis._tag = \"div\";\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t\tlet xPos = 0;\n\t\tlet yPos = 0;\n\t\tlet width = this.clientWidth();\n\t\tlet height = this.clientHeight();\n\t\tswitch (this.units()) {\n\t\t\tcase \"pixels\":\n\t\t\t\txPos = this.widgetX();\n\t\t\t\tyPos = this.widgetY();\n\t\t\t\twidth = this.widgetWidth() === \"\" ? width - xPos : Number(this.widgetWidth());\n\t\t\t\theight = this.widgetHeight() === \"\" ? height - yPos : Number(this.widgetHeight());\n\t\t\t\tbreak;\n\t\t\tcase \"percent\":\n\t\t\t\txPos = this.widgetX() * width / 100;\n\t\t\t\tyPos = this.widgetY() * height / 100;\n\t\t\t\twidth = this.widgetWidth() === \"\" ? width - xPos : Number(this.widgetWidth()) * width / 100;\n\t\t\t\theight = this.widgetHeight() === \"\" ? height - yPos : Number(this.widgetHeight()) * height / 100;\n\t\t\t\tbreak;\n\t\t}\n\t\telement.style(\"opacity\", this.opacity());\n\t\tconst widgets = element.selectAll(\"#\" + this._id + \" > .placeholder\").data(this.widget() ? [this.widget()] : [], function(d) {\n\t\t\treturn d._id;\n\t\t});\n\t\twidgets.enter().append(\"div\").attr(\"class\", \"placeholder\").each(function(d) {\n\t\t\td.target(this);\n\t\t}).merge(widgets).style(\"left\", xPos + \"px\").style(\"top\", yPos + \"px\").style(\"width\", width + \"px\").style(\"bottom\", height + \"px\").each(function(d) {\n\t\t\td.resize({\n\t\t\t\twidth,\n\t\t\t\theight\n\t\t\t});\n\t\t});\n\t\twidgets.exit().each(function(d) {\n\t\t\td.target(null);\n\t\t}).remove();\n\t}\n\texit(domNode, element) {\n\t\tif (this.widget()) this.widget().target(null);\n\t\tsuper.exit(domNode, element);\n\t}\n};\nAbsoluteSurface.prototype._class += \" layout_AbsoluteSurface\";\nAbsoluteSurface.prototype.publish(\"units\", \"percent\", \"set\", \"Units\", [\"pixels\", \"percent\"]);\nAbsoluteSurface.prototype.publish(\"widgetX\", 0, \"number\", \"Widget XPos\");\nAbsoluteSurface.prototype.publish(\"widgetY\", 0, \"number\", \"Widget YPos\");\nAbsoluteSurface.prototype.publish(\"widgetWidth\", \"100\", \"string\", \"Widget Width, omit for full\");\nAbsoluteSurface.prototype.publish(\"widgetHeight\", \"100\", \"string\", \"Widget Height, omit for full\");\nAbsoluteSurface.prototype.publish(\"widget\", null, \"widget\", \"Widget\", null, { tags: [\"Private\"] });\nAbsoluteSurface.prototype.publish(\"opacity\", 1, \"number\", \"Opacity\");\n\n//#endregion\n//#region src/Accordion.ts\nvar Accordion = class extends HTMLWidget {\n\t_isClosed;\n\ttitleSpan;\n\ticonDiv;\n\tul;\n\ticon;\n\tconstructor() {\n\t\tsuper();\n\t\tthis._tag = \"div\";\n\t\tthis._isClosed = false;\n\t}\n\tpushListItem(widget, prepend = false, protect = false) {\n\t\tconst contentArr = this.content();\n\t\twidget._protected = protect;\n\t\tif (prepend) contentArr.unshift(widget);\n\t\telse contentArr.push(widget);\n\t\tthis.content(contentArr);\n\t\treturn this;\n\t}\n\tclearListItems() {\n\t\tconst arr = [];\n\t\tfor (const i in this.content()) if (this.content()[i]._protected) arr.push(this.content()[i]);\n\t\tthis.content(arr);\n\t\treturn this;\n\t}\n\tcollapseClick(element) {\n\t\tif (element.classed(\"closed\")) {\n\t\t\tthis._isClosed = false;\n\t\t\telement.classed(\"open\", true);\n\t\t\telement.classed(\"closed\", false);\n\t\t} else {\n\t\t\tthis._isClosed = true;\n\t\t\telement.classed(\"open\", false);\n\t\t\telement.classed(\"closed\", true);\n\t\t}\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tconst context = this;\n\t\tthis._isClosed = this.defaultCollapsed();\n\t\telement.classed(this._isClosed ? \"closed\" : \"open\", true);\n\t\tthis.titleSpan = element.append(\"span\").classed(\"collapsible-title\", true);\n\t\tthis.iconDiv = element.append(\"div\").classed(\"collapsible-icon\", true);\n\t\tthis.ul = element.append(\"ul\");\n\t\tthis.icon = new FAChar().size({\n\t\t\theight: 24,\n\t\t\twidth: 24\n\t\t}).target(this.iconDiv.node());\n\t\tthis.iconDiv.on(\"click\", function() {\n\t\t\tcontext.collapseClick(element);\n\t\t\tcontext.render();\n\t\t});\n\t\tthis.titleSpan.on(\"click\", function() {\n\t\t\tcontext.collapseClick(element);\n\t\t\tcontext.render();\n\t\t});\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t\tconst context = this;\n\t\tthis.titleSpan.text(context.title().length > 0 ? context.title() + \"\" : \"Accordion [\" + context._id + \"]\");\n\t\tconst rows = this.ul.selectAll(\"#\" + context._id + \" > ul > li\").data(this.content(), function(d) {\n\t\t\treturn d._id;\n\t\t});\n\t\trows.enter().append(function(widget) {\n\t\t\tconst li = document.createElement(\"li\");\n\t\t\tif (widget._target === null) {\n\t\t\t\tconst wSize = widget.size();\n\t\t\t\tif (wSize.width === 0 || wSize.height === 0) {\n\t\t\t\t\tconst cSize = context.size();\n\t\t\t\t\twidget.size({\n\t\t\t\t\t\twidth: cSize.width,\n\t\t\t\t\t\theight: cSize.width\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\twidget.target(li);\n\t\t\t} else return widget._target;\n\t\t\treturn li;\n\t\t});\n\t\trows.exit().remove();\n\t\tthis.icon.text_colorFill(this.titleFontColor()).char(this._isClosed ? this.closedIcon() : this.openIcon()).render();\n\t}\n\texit(domNode, element) {\n\t\tsuper.exit(domNode, element);\n\t}\n};\nAccordion.prototype._class += \" layout_Accordion\";\nAccordion.prototype.publish(\"content\", [], \"widgetArray\", \"Array of widgets\", null, { tags: [\"Basic\"] });\nAccordion.prototype.publish(\"title\", \"\", \"string\", \"Title of collapsible section\", null, { tags: [\"Private\"] });\nAccordion.prototype.publish(\"openIcon\", \"\", \"string\", \"Icon to display when list is open\", null, { tags: [\"Private\"] });\nAccordion.prototype.publish(\"closedIcon\", \"\", \"string\", \"Icon to display when list is closed\", null, { tags: [\"Private\"] });\nAccordion.prototype.publish(\"titleFontColor\", \"#FFFFFF\", \"html-color\", \"Title font color\", null, { tags: [\"Private\"] });\nAccordion.prototype.publish(\"titleBackgroundColor\", \"#333333\", \"html-color\", \"Title background color\", null, { tags: [\"Private\"] });\nAccordion.prototype.publish(\"defaultCollapsed\", false, \"boolean\", \"Collapsed by default if true\", null, { tags: [\"Private\"] });\n\n//#endregion\n//#region src/Surface.ts\nvar Surface = class extends HTMLWidget {\n\t_surfaceButtons;\n\tconstructor() {\n\t\tsuper();\n\t\tthis._tag = \"div\";\n\t\tthis._surfaceButtons = [];\n\t}\n\twidgetSize(titleDiv, widgetDiv) {\n\t\tlet width = this.clientWidth();\n\t\tlet height = this.clientHeight();\n\t\tif (this.title()) height -= this.calcHeight(titleDiv);\n\t\theight -= this.calcFrameHeight(widgetDiv);\n\t\twidth -= this.calcFrameWidth(widgetDiv);\n\t\treturn {\n\t\t\twidth,\n\t\t\theight\n\t\t};\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t}\n\tupdate(domNode, element2) {\n\t\tsuper.update(domNode, element2);\n\t\tconst context = this;\n\t\telement2.classed(\"shadow2\", this.surfaceShadow()).style(\"border-width\", this.surfaceBorderWidth_exists() ? this.surfaceBorderWidth() + \"px\" : null).style(\"border-color\", this.surfaceBorderColor()).style(\"border-radius\", this.surfaceBorderRadius_exists() ? this.surfaceBorderRadius() + \"px\" : null).style(\"background-color\", this.surfaceBackgroundColor());\n\t\tconst titles = element2.selectAll(\".surfaceTitle\").data(this.title() ? [this.title()] : []);\n\t\ttitles.enter().insert(\"h3\", \"div\").attr(\"class\", \"surfaceTitle\").merge(titles).text(function(d) {\n\t\t\treturn d;\n\t\t}).style(\"text-align\", this.surfaceTitleAlignment()).style(\"color\", this.surfaceTitleFontColor()).style(\"font-size\", this.surfaceTitleFontSize_exists() ? this.surfaceTitleFontSize() + \"px\" : null).style(\"font-family\", this.surfaceTitleFontFamily()).style(\"font-weight\", this.surfaceTitleFontBold() ? \"bold\" : \"normal\").style(\"background-color\", this.surfaceTitleBackgroundColor()).style(\"padding\", this.surfaceTitlePadding_exists() ? this.surfaceTitlePadding() + \"px\" : null).style(\"title\", this.altText_exists() ? this.altText() : null);\n\t\ttitles.exit().remove();\n\t\tconst surfaceButtons = element2.select(\".surfaceTitle\").append(\"div\").attr(\"class\", \"html-button-container\").selectAll(\".surface-button\").data(this.buttonAnnotations());\n\t\tsurfaceButtons.enter().append(\"button\").classed(\"surface-button\", true).each(function(button, idx) {\n\t\t\tconst el = context._surfaceButtons[idx] = select(this).attr(\"class\", \"surface-button\" + (button.class ? \" \" + button.class : \"\")).attr(\"id\", button.id).style(\"padding\", button.padding).style(\"width\", button.width).style(\"height\", button.height).style(\"cursor\", \"pointer\");\n\t\t\tif (button.font === \"FontAwesome\") el.style(\"background\", \"transparent\").style(\"border\", \"none\").on(\"click\", function(d) {\n\t\t\t\tcontext.click(d);\n\t\t\t}).append(\"i\").attr(\"class\", \"fa\").text(function() {\n\t\t\t\treturn button.label;\n\t\t\t});\n\t\t\telse el.text(function() {\n\t\t\t\treturn button.label;\n\t\t\t}).on(\"click\", function(d) {\n\t\t\t\tcontext.click(d);\n\t\t\t});\n\t\t});\n\t\tsurfaceButtons.exit().each(function(_d, idx) {\n\t\t\tconst element = select(this);\n\t\t\tdelete context._surfaceButtons[idx];\n\t\t\telement.remove();\n\t\t});\n\t\tconst widgets = element2.selectAll(\"#\" + this._id + \" > .surfaceWidget\").data(this.widget() ? [this.widget()] : [], function(d) {\n\t\t\treturn d._id;\n\t\t});\n\t\twidgets.enter().append(\"div\").attr(\"class\", \"surfaceWidget\").each(function(d) {\n\t\t\tselect(context.element().node().parentElement).classed(\"content-icon content-icon-\" + d.classID().split(\"_\")[1], true);\n\t\t\td.target(this);\n\t\t}).merge(widgets).style(\"padding\", this.surfacePadding_exists() ? this.surfacePadding() + \"px\" : null).each(function(d) {\n\t\t\tconst widgetSize = context.widgetSize(element2.select(\"h3\"), select(this));\n\t\t\tif (widgetSize.width < 0) widgetSize.width = 0;\n\t\t\tif (widgetSize.height < 0) widgetSize.height = 0;\n\t\t\td.resize({\n\t\t\t\twidth: widgetSize.width,\n\t\t\t\theight: widgetSize.height\n\t\t\t});\n\t\t});\n\t\twidgets.exit().each(function(d) {\n\t\t\td.target(null);\n\t\t}).remove();\n\t}\n\texit(domNode, element) {\n\t\tif (this.widget()) this.widget().target(null);\n\t\tsuper.exit(domNode, element);\n\t}\n\tclick(obj) {}\n};\nSurface.prototype._class += \" layout_Surface\";\nSurface.prototype.publish(\"title\", \"\", \"string\", \"Title\", null, { tags: [\"Intermediate\"] });\nSurface.prototype.publish(\"altText\", null, \"string\", \"Alt text\", null, { optional: true });\nSurface.prototype.publish(\"surfaceTitlePadding\", null, \"number\", \"Title Padding (px)\", null, {\n\ttags: [\"Advanced\"],\n\tdisable: (w) => !w.title()\n});\nSurface.prototype.publish(\"surfaceTitleFontSize\", null, \"number\", \"Title Font Size (px)\", null, {\n\ttags: [\"Advanced\"],\n\tdisable: (w) => !w.title()\n});\nSurface.prototype.publish(\"surfaceTitleFontColor\", null, \"html-color\", \"Title Font Color\", null, {\n\ttags: [\"Advanced\"],\n\tdisable: (w) => !w.title()\n});\nSurface.prototype.publish(\"surfaceTitleFontFamily\", null, \"string\", \"Title Font Family\", null, {\n\ttags: [\"Advanced\"],\n\tdisable: (w) => !w.title()\n});\nSurface.prototype.publish(\"surfaceTitleFontBold\", true, \"boolean\", \"Enable Bold Title Font\", null, {\n\ttags: [\"Advanced\"],\n\tdisable: (w) => !w.title()\n});\nSurface.prototype.publish(\"surfaceTitleBackgroundColor\", null, \"html-color\", \"Title Background Color\", null, {\n\ttags: [\"Advanced\"],\n\tdisable: (w) => !w.title()\n});\nSurface.prototype.publish(\"surfaceTitleAlignment\", \"center\", \"set\", \"Title Alignment\", [\n\t\"left\",\n\t\"right\",\n\t\"center\"\n], {\n\ttags: [\"Basic\"],\n\tdisable: (w) => !w.title()\n});\nSurface.prototype.publish(\"surfaceShadow\", false, \"boolean\", \"3D Shadow\");\nSurface.prototype.publish(\"surfacePadding\", null, \"string\", \"Surface Padding (px)\", null, { tags: [\"Intermediate\"] });\nSurface.prototype.publish(\"surfaceBackgroundColor\", null, \"html-color\", \"Surface Background Color\", null, { tags: [\"Advanced\"] });\nSurface.prototype.publish(\"surfaceBorderWidth\", null, \"number\", \"Surface Border Width (px)\", null, { tags: [\"Advanced\"] });\nSurface.prototype.publish(\"surfaceBorderColor\", null, \"html-color\", \"Surface Border Color\", null, { tags: [\"Advanced\"] });\nSurface.prototype.publish(\"surfaceBorderRadius\", null, \"number\", \"Surface Border Radius (px)\", null, { tags: [\"Advanced\"] });\nSurface.prototype.publish(\"buttonAnnotations\", [], \"array\", \"Button Array\", null, { tags: [\"Private\"] });\nSurface.prototype.publish(\"widget\", null, \"widget\", \"Widget\", null, { tags: [\"Basic\"] });\n\n//#endregion\n//#region src/Cell.ts\nvar Cell = class extends Surface {\n\t_indicateTheseIds;\n\tconstructor() {\n\t\tsuper();\n\t\tthis._indicateTheseIds = [];\n\t}\n\tindicateTheseIds(_) {\n\t\tif (!arguments.length) return this._indicateTheseIds;\n\t\tthis._indicateTheseIds = _;\n\t\treturn this;\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tconst context = this;\n\t\telement.classed(\"layout_Surface\", true).on(\"mouseenter\", function() {\n\t\t\tcontext.onMouseEnter();\n\t\t}).on(\"mouseleave\", function() {\n\t\t\tcontext.onMouseLeave();\n\t\t});\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t}\n\tonMouseEnter() {\n\t\tconst arr = this.indicateTheseIds();\n\t\tconst opacity = this.indicatorOpacity();\n\t\tconst indicatorBorderColor = this.indicatorBorderColor();\n\t\tconst indicatorGlowColor = this.indicatorGlowColor();\n\t\tfor (let i = 0; i < arr.length; i++) {\n\t\t\tconst otherElement = select(\"#\" + arr[i]);\n\t\t\tconst otherWidget = otherElement.datum();\n\t\t\tif (otherElement && otherWidget) otherElement.append(\"div\").attr(\"class\", \"update-indicator\").style(\"width\", otherWidget.width() + \"px\").style(\"height\", otherWidget.height() + \"px\").style(\"opacity\", opacity).style(\"border-color\", indicatorBorderColor).style(\"-webkit-box-shadow\", \"inset 0px 0px 30px 0px \" + indicatorGlowColor).style(\"-moz-box-shadow\", \"inset 0px 0px 30px 0px \" + indicatorGlowColor).style(\"box-shadow\", \"inset 0px 0px 30px 0px \" + indicatorGlowColor);\n\t\t}\n\t}\n\tonMouseLeave() {\n\t\tconst arr = this.indicateTheseIds();\n\t\tfor (let i = 0; i < arr.length; i++) selectAll(\"#\" + arr[i] + \" > div.update-indicator\").remove();\n\t}\n};\nCell.prototype._class += \" layout_Cell\";\nCell.prototype.publish(\"gridRow\", 0, \"number\", \"Grid Row Position\", null, { tags: [\"Private\"] });\nCell.prototype.publish(\"gridCol\", 0, \"number\", \"Grid Column Position\", null, { tags: [\"Private\"] });\nCell.prototype.publish(\"gridRowSpan\", 1, \"number\", \"Grid Row Span\", null, { tags: [\"Private\"] });\nCell.prototype.publish(\"gridColSpan\", 1, \"number\", \"Grid Column Span\", null, { tags: [\"Private\"] });\nCell.prototype.publish(\"indicatorGlowColor\", \"#EEEE11\", \"html-color\", \"Glow color of update-indicator\", null, { tags: [\"Basic\"] });\nCell.prototype.publish(\"indicatorBorderColor\", \"#F48A00\", \"html-color\", \"Border color of update-indicator\", null, { tags: [\"Basic\"] });\nCell.prototype.publish(\"indicatorOpacity\", .8, \"number\", \"Opacity of update-indicator\", null, { tags: [\"Basic\"] });\n\n//#endregion\n//#region src/Border.ts\nvar Border = class extends HTMLWidget {\n\t_colCount;\n\t_rowCount;\n\t_colSize;\n\t_rowSize;\n\t_shrinkWrapBoxes;\n\t_watch;\n\t_offsetX;\n\t_offsetY;\n\t_dragCell;\n\t_dragCellSize;\n\t_dragCellStartSize;\n\t_handleTop;\n\t_handleLeft;\n\t_dragPrevX;\n\t_dragPrevY;\n\t_cellSizes;\n\tcontentDiv;\n\t_scrollBarWidth;\n\t_borderHandles;\n\t_sectionTypeArr;\n\tconstructor() {\n\t\tsuper();\n\t\tthis._tag = \"div\";\n\t\tthis._colCount = 0;\n\t\tthis._rowCount = 0;\n\t\tthis._colSize = 0;\n\t\tthis._rowSize = 0;\n\t\tthis._shrinkWrapBoxes = {};\n\t\tthis.content([]);\n\t\tthis.sectionTypes([]);\n\t}\n\twatchWidget(widget) {\n\t\tif (this._watch === void 0) this._watch = {};\n\t\tif (this._watch[widget.id()]) {\n\t\t\tthis._watch[widget.id()].remove();\n\t\t\tdelete this._watch[widget.id()];\n\t\t}\n\t\tif (widget) {\n\t\t\tconst context = this;\n\t\t\tthis._watch[widget.id()] = widget.monitor(function(paramId, newVal, oldVal) {\n\t\t\t\tif (oldVal !== newVal) context.lazyPostUpdate();\n\t\t\t});\n\t\t}\n\t}\n\tlazyPostUpdate = Utility.debounce(function() {\n\t\tthis.postUpdate();\n\t}, 100);\n\tapplyLayoutType() {\n\t\tconst layoutObj = this.borderLayoutObject();\n\t\tthis.content().forEach(function(cell, i) {\n\t\t\tcell._fixedLeft = layoutObj[this.sectionTypes()[i]].left;\n\t\t\tcell._fixedTop = layoutObj[this.sectionTypes()[i]].top;\n\t\t\tcell._fixedWidth = layoutObj[this.sectionTypes()[i]].width;\n\t\t\tcell._fixedHeight = layoutObj[this.sectionTypes()[i]].height;\n\t\t\tcell._dragHandles = this.cellSpecificDragHandles(this.sectionTypes()[i]);\n\t\t}, this);\n\t}\n\tcellSpecificDragHandles(sectionType) {\n\t\tswitch (sectionType) {\n\t\t\tcase \"top\": return [\"s\"];\n\t\t\tcase \"right\": return [\"w\"];\n\t\t\tcase \"bottom\": return [\"n\"];\n\t\t\tcase \"left\": return [\"e\"];\n\t\t\tcase \"center\": return [];\n\t\t}\n\t}\n\tborderLayoutObject(layoutType) {\n\t\tconst retObj = {};\n\t\tconst context = this;\n\t\tlet topSize;\n\t\tlet topPerc;\n\t\tlet bottomSize;\n\t\tlet bottomPerc;\n\t\tlet leftSize;\n\t\tlet leftPerc;\n\t\tlet rightSize;\n\t\tlet rightPerc;\n\t\tconst bcRect = this.target().getBoundingClientRect();\n\t\tconst gridRect = {};\n\t\tgridRect.top = bcRect.top;\n\t\tgridRect.left = bcRect.left;\n\t\tgridRect.bottom = bcRect.bottom;\n\t\tgridRect.right = bcRect.right;\n\t\tif (this.target() instanceof SVGElement) {\n\t\t\tgridRect.width = parseFloat(this.target().getAttribute(\"width\"));\n\t\t\tgridRect.height = parseFloat(this.target().getAttribute(\"height\"));\n\t\t} else {\n\t\t\tgridRect.width = bcRect.width;\n\t\t\tgridRect.height = bcRect.height;\n\t\t}\n\t\tif (this.sectionTypes().indexOf(\"top\") !== -1) {\n\t\t\ttopSize = this.topSize();\n\t\t\ttopPerc = this.topPercentage();\n\t\t\tif (typeof this._shrinkWrapBoxes[\"top\"] !== \"undefined\") {\n\t\t\t\ttopSize = this._shrinkWrapBoxes[\"top\"].height + this.gutter();\n\t\t\t\ttopPerc = 0;\n\t\t\t}\n\t\t}\n\t\tif (this.sectionTypes().indexOf(\"bottom\") !== -1) {\n\t\t\tbottomSize = this.bottomSize();\n\t\t\tbottomPerc = this.bottomPercentage();\n\t\t\tif (typeof this._shrinkWrapBoxes[\"bottom\"] !== \"undefined\") {\n\t\t\t\tbottomSize = this._shrinkWrapBoxes[\"bottom\"].height + this.gutter();\n\t\t\t\tbottomPerc = 0;\n\t\t\t}\n\t\t}\n\t\tif (this.sectionTypes().indexOf(\"left\") !== -1) {\n\t\t\tleftSize = this.leftSize();\n\t\t\tleftPerc = this.leftPercentage();\n\t\t\tif (typeof this._shrinkWrapBoxes[\"left\"] !== \"undefined\") {\n\t\t\t\tleftSize = this._shrinkWrapBoxes[\"left\"].width + this.gutter();\n\t\t\t\tleftPerc = 0;\n\t\t\t}\n\t\t}\n\t\tif (this.sectionTypes().indexOf(\"right\") !== -1) {\n\t\t\trightSize = this.rightSize();\n\t\t\trightPerc = this.rightPercentage();\n\t\t\tif (typeof this._shrinkWrapBoxes[\"right\"] !== \"undefined\") {\n\t\t\t\trightSize = this._shrinkWrapBoxes[\"right\"].width + this.gutter();\n\t\t\t\trightPerc = 0;\n\t\t\t}\n\t\t}\n\t\tconst t = _sectionPlacementObject({\n\t\t\twidth: {\n\t\t\t\t\"px\": 0,\n\t\t\t\t\"%\": 100\n\t\t\t},\n\t\t\theight: {\n\t\t\t\t\"px\": topSize,\n\t\t\t\t\"%\": topPerc\n\t\t\t},\n\t\t\ttop: {\n\t\t\t\t\"px\": 0,\n\t\t\t\t\"%\": 0\n\t\t\t},\n\t\t\tleft: {\n\t\t\t\t\"px\": 0,\n\t\t\t\t\"%\": 0\n\t\t\t}\n\t\t});\n\t\tconst b = _sectionPlacementObject({\n\t\t\twidth: {\n\t\t\t\t\"px\": 0,\n\t\t\t\t\"%\": 100\n\t\t\t},\n\t\t\theight: {\n\t\t\t\t\"px\": bottomSize,\n\t\t\t\t\"%\": bottomPerc\n\t\t\t},\n\t\t\ttop: {\n\t\t\t\t\"px\": 0,\n\t\t\t\t\"%\": 100\n\t\t\t},\n\t\t\tleft: {\n\t\t\t\t\"px\": 0,\n\t\t\t\t\"%\": 0\n\t\t\t}\n\t\t});\n\t\tb.top -= b.height;\n\t\tconst l = _sectionPlacementObject({\n\t\t\twidth: {\n\t\t\t\t\"px\": leftSize,\n\t\t\t\t\"%\": leftPerc\n\t\t\t},\n\t\t\theight: {\n\t\t\t\t\"px\": -t.height - b.height,\n\t\t\t\t\"%\": 100\n\t\t\t},\n\t\t\ttop: {\n\t\t\t\t\"px\": t.height,\n\t\t\t\t\"%\": 0\n\t\t\t},\n\t\t\tleft: {\n\t\t\t\t\"px\": 0,\n\t\t\t\t\"%\": 0\n\t\t\t}\n\t\t});\n\t\tconst r = _sectionPlacementObject({\n\t\t\twidth: {\n\t\t\t\t\"px\": rightSize,\n\t\t\t\t\"%\": rightPerc\n\t\t\t},\n\t\t\theight: {\n\t\t\t\t\"px\": -t.height - b.height,\n\t\t\t\t\"%\": 100\n\t\t\t},\n\t\t\ttop: {\n\t\t\t\t\"px\": t.height,\n\t\t\t\t\"%\": 0\n\t\t\t},\n\t\t\tleft: {\n\t\t\t\t\"px\": 0,\n\t\t\t\t\"%\": 100\n\t\t\t}\n\t\t});\n\t\tr.left -= r.width;\n\t\tconst c$1 = _sectionPlacementObject({\n\t\t\twidth: {\n\t\t\t\t\"px\": -r.width - l.width,\n\t\t\t\t\"%\": 100\n\t\t\t},\n\t\t\theight: {\n\t\t\t\t\"px\": -t.height - b.height,\n\t\t\t\t\"%\": 100\n\t\t\t},\n\t\t\ttop: {\n\t\t\t\t\"px\": t.height,\n\t\t\t\t\"%\": 0\n\t\t\t},\n\t\t\tleft: {\n\t\t\t\t\"px\": l.width,\n\t\t\t\t\"%\": 0\n\t\t\t}\n\t\t});\n\t\tretObj[\"top\"] = t;\n\t\tretObj[\"bottom\"] = b;\n\t\tretObj[\"right\"] = r;\n\t\tretObj[\"left\"] = l;\n\t\tretObj[\"center\"] = c$1;\n\t\treturn retObj;\n\t\tfunction _sectionPlacementObject(obj) {\n\t\t\tobj.width[\"px\"] = typeof obj.width[\"px\"] !== \"undefined\" ? obj.width[\"px\"] : 0;\n\t\t\tobj.width[\"%\"] = typeof obj.width[\"%\"] !== \"undefined\" ? obj.width[\"%\"] : 0;\n\t\t\tobj.height[\"px\"] = typeof obj.height[\"px\"] !== \"undefined\" ? obj.height[\"px\"] : 0;\n\t\t\tobj.height[\"%\"] = typeof obj.height[\"%\"] !== \"undefined\" ? obj.height[\"%\"] : 0;\n\t\t\treturn {\n\t\t\t\twidth: obj.width[\"px\"] + obj.width[\"%\"] / 100 * context.width(),\n\t\t\t\theight: obj.height[\"px\"] + obj.height[\"%\"] / 100 * context.height(),\n\t\t\t\ttop: obj.top[\"px\"] + obj.top[\"%\"] / 100 * context.height() + context.gutter() / 2,\n\t\t\t\tleft: obj.left[\"px\"] + obj.left[\"%\"] / 100 * context.width() + context.gutter() / 2\n\t\t\t};\n\t\t}\n\t}\n\tclearContent(sectionType) {\n\t\tif (!sectionType) {\n\t\t\tthis.content().forEach(function(contentWidget) {\n\t\t\t\tcontentWidget.target(null);\n\t\t\t\treturn false;\n\t\t\t});\n\t\t\tselect(\"#\" + this.id() + \" > div.borderHandle\").classed(\"borderHandleDisabled\", true);\n\t\t\tdelete this._watch;\n\t\t\tthis.content([]);\n\t\t\tthis.sectionTypes([]);\n\t\t} else {\n\t\t\tconst idx = this.sectionTypes().indexOf(sectionType);\n\t\t\tif (idx >= 0) {\n\t\t\t\tif (this._watch && this.content()[idx]) delete this._watch[this.content()[idx].id()];\n\t\t\t\tthis.content()[idx].target(null);\n\t\t\t\tselect(\"#\" + this.id() + \" > div.borderHandle_\" + sectionType).classed(\"borderHandleDisabled\", true);\n\t\t\t\tthis.content().splice(idx, 1);\n\t\t\t\tthis.sectionTypes().splice(idx, 1);\n\t\t\t}\n\t\t}\n\t}\n\thasContent(sectionType, widget, title) {\n\t\treturn this.sectionTypes().indexOf(sectionType) >= 0;\n\t}\n\tsetContent(sectionType, widget, title) {\n\t\tthis.clearContent(sectionType);\n\t\ttitle = typeof title !== \"undefined\" ? title : \"\";\n\t\tif (widget) {\n\t\t\tconst cell = new Cell().surfaceBorderWidth(0).widget(widget).title(title);\n\t\t\tthis.watchWidget(widget);\n\t\t\tthis.content().push(cell);\n\t\t\tthis.sectionTypes().push(sectionType);\n\t\t}\n\t\treturn this;\n\t}\n\tgetCell(id) {\n\t\tconst idx = this.sectionTypes().indexOf(id);\n\t\tif (idx >= 0) return this.content()[idx];\n\t\treturn null;\n\t}\n\tgetContent(id) {\n\t\tconst idx = this.sectionTypes().indexOf(id);\n\t\tif (idx >= 0) return this.content()[idx].widget();\n\t\treturn null;\n\t}\n\tsetLayoutOffsets() {\n\t\tthis._offsetX = this._element.node().getBoundingClientRect().left + this.gutter() / 2;\n\t\tthis._offsetY = this._element.node().getBoundingClientRect().top + this.gutter() / 2;\n\t}\n\tdragStart(handle) {\n\t\tconst event = d3Event();\n\t\tevent.sourceEvent.stopPropagation();\n\t\tconst context = this;\n\t\tthis._dragCell = handle;\n\t\tthis._dragCellStartSize = this[handle + \"Size\"]();\n\t\tif (this[handle + \"ShrinkWrap\"]()) {\n\t\t\tthis[handle + \"Percentage\"](0);\n\t\t\tthis[handle + \"ShrinkWrap\"](false);\n\t\t}\n\t\tconst handleElm = select(\"#\" + context.id() + \" > div.borderHandle_\" + handle);\n\t\tcontext._handleTop = parseFloat(handleElm.style(\"top\").split(\"px\")[0]);\n\t\tcontext._handleLeft = parseFloat(handleElm.style(\"left\").split(\"px\")[0]);\n\t\tthis._dragPrevX = event.sourceEvent.clientX;\n\t\tthis._dragPrevY = event.sourceEvent.clientY;\n\t}\n\tdragTick(handle) {\n\t\tconst context = this;\n\t\tconst event = d3Event();\n\t\tconst xDelta = this._dragPrevX - event.sourceEvent.clientX;\n\t\tconst yDelta = this._dragPrevY - event.sourceEvent.clientY;\n\t\tswitch (handle) {\n\t\t\tcase \"top\":\n\t\t\tcase \"bottom\":\n\t\t\t\t_moveHandles(handle, yDelta);\n\t\t\t\tbreak;\n\t\t\tcase \"right\":\n\t\t\tcase \"left\":\n\t\t\t\t_moveHandles(handle, xDelta);\n\t\t\t\tbreak;\n\t\t}\n\t\tfunction _moveHandles(handle2, delta) {\n\t\t\tif (delta === 0) return;\n\t\t\tconst handles = selectAll(\"#\" + context.id() + \" > div.borderHandle\");\n\t\t\tconst grabbedHandle = select(\"#\" + context.id() + \" > div.borderHandle_\" + handle2);\n\t\t\tif (grabbedHandle.classed(\"borderHandle_top\")) {\n\t\t\t\tgrabbedHandle.style(\"top\", context._handleTop - delta + \"px\");\n\t\t\t\tcontext._cellSizes.topHeight = context._handleTop - delta;\n\t\t\t\tcontext._cellSizes.leftHeight = context._cellSizes.height;\n\t\t\t\tcontext._cellSizes.leftHeight -= context._cellSizes.topHeight;\n\t\t\t\tcontext._cellSizes.leftHeight -= context._cellSizes.bottomHeight;\n\t\t\t\tcontext._cellSizes.rightHeight = context._cellSizes.leftHeight;\n\t\t\t} else if (grabbedHandle.classed(\"borderHandle_right\")) {\n\t\t\t\tgrabbedHandle.style(\"left\", context._handleLeft - delta + \"px\");\n\t\t\t\tcontext._cellSizes.rightWidth = context._cellSizes.width - context._handleLeft + delta;\n\t\t\t} else if (grabbedHandle.classed(\"borderHandle_bottom\")) {\n\t\t\t\tgrabbedHandle.style(\"top\", context._handleTop - delta + \"px\");\n\t\t\t\tcontext._cellSizes.bottomHeight = context._cellSizes.height - context._handleTop + delta;\n\t\t\t\tcontext._cellSizes.leftHeight = context._cellSizes.height;\n\t\t\t\tcontext._cellSizes.leftHeight -= context._cellSizes.bottomHeight;\n\t\t\t\tcontext._cellSizes.leftHeight -= context._cellSizes.topHeight;\n\t\t\t\tcontext._cellSizes.rightHeight = context._cellSizes.leftHeight;\n\t\t\t} else if (grabbedHandle.classed(\"borderHandle_left\")) {\n\t\t\t\tgrabbedHandle.style(\"left\", context._handleLeft - delta + \"px\");\n\t\t\t\tcontext._cellSizes.leftWidth = context._handleLeft - delta;\n\t\t\t}\n\t\t\thandles.each(function() {\n\t\t\t\tconst handle3 = select(this);\n\t\t\t\tif (handle3.classed(\"borderHandle_top\")) {\n\t\t\t\t\thandle3.style(\"width\", context._cellSizes.width + \"px\");\n\t\t\t\t\thandle3.style(\"top\", context._cellSizes.topHeight - 3 + \"px\");\n\t\t\t\t} else if (handle3.classed(\"borderHandle_right\")) {\n\t\t\t\t\thandle3.style(\"left\", context._cellSizes.width - context._cellSizes.rightWidth + \"px\");\n\t\t\t\t\thandle3.style(\"top\", context._cellSizes.topHeight + 3 + \"px\");\n\t\t\t\t\thandle3.style(\"height\", context._cellSizes.rightHeight + \"px\");\n\t\t\t\t} else if (handle3.classed(\"borderHandle_bottom\")) {\n\t\t\t\t\thandle3.style(\"width\", context._cellSizes.width + \"px\");\n\t\t\t\t\thandle3.style(\"top\", context._cellSizes.height - context._cellSizes.bottomHeight - 3 + \"px\");\n\t\t\t\t} else if (handle3.classed(\"borderHandle_left\")) {\n\t\t\t\t\thandle3.style(\"left\", context._cellSizes.leftWidth + \"px\");\n\t\t\t\t\thandle3.style(\"height\", context._cellSizes.leftHeight + \"px\");\n\t\t\t\t\thandle3.style(\"top\", context._cellSizes.topHeight + 3 + \"px\");\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\tdragEnd(handle) {\n\t\tif (handle) {\n\t\t\tconst event = d3Event();\n\t\t\tconst xDelta = this._dragPrevX - event.sourceEvent.clientX;\n\t\t\tconst yDelta = this._dragPrevY - event.sourceEvent.clientY;\n\t\t\tswitch (handle) {\n\t\t\t\tcase \"top\":\n\t\t\t\t\tif (yDelta !== 0) {\n\t\t\t\t\t\tthis.topPercentage(0);\n\t\t\t\t\t\tthis.topSize(this.topSize() === 0 ? this.getContent(\"top\").getBBox().height - yDelta : this.topSize() - yDelta);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"right\":\n\t\t\t\t\tif (xDelta !== 0) {\n\t\t\t\t\t\tthis.rightPercentage(0);\n\t\t\t\t\t\tthis.rightSize(this.rightSize() === 0 ? this.getContent(\"right\").getBBox().width + xDelta : this.rightSize() + xDelta);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"bottom\":\n\t\t\t\t\tif (yDelta !== 0) {\n\t\t\t\t\t\tthis.bottomPercentage(0);\n\t\t\t\t\t\tthis.bottomSize(this.bottomSize() === 0 ? this.getContent(\"bottom\").getBBox().height + yDelta : this.bottomSize() + yDelta);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"left\":\n\t\t\t\t\tif (xDelta !== 0) {\n\t\t\t\t\t\tthis.leftPercentage(0);\n\t\t\t\t\t\tthis.leftSize(this.leftSize() === 0 ? this.getContent(\"left\").getBBox().width - xDelta : this.leftSize() - xDelta);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tthis._dragPrevX = event.sourceEvent.clientX;\n\t\t\tthis._dragPrevY = event.sourceEvent.clientY;\n\t\t}\n\t\tthis.render();\n\t}\n\tsize(_) {\n\t\tconst retVal = HTMLWidget.prototype.size.apply(this, arguments);\n\t\tif (arguments.length && this.contentDiv) this.contentDiv.style(\"width\", this._size.width + \"px\").style(\"height\", this._size.height + \"px\");\n\t\treturn retVal;\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tconst context = this;\n\t\telement.style(\"position\", \"relative\");\n\t\tthis.contentDiv = element.append(\"div\").classed(\"border-content\", true);\n\t\tthis._scrollBarWidth = Platform.getScrollbarWidth();\n\t\tthis._borderHandles = [\n\t\t\t\"top\",\n\t\t\t\"left\",\n\t\t\t\"right\",\n\t\t\t\"bottom\"\n\t\t];\n\t\telement.selectAll(\"div.borderHandle\").data(this._borderHandles).enter().append(\"div\").classed(\"borderHandle\", true).each(function(handle) {\n\t\t\tselect(this).classed(\"borderHandle_\" + handle, true).classed(\"borderHandleDisabled\", context.getContent(handle) === null);\n\t\t});\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t\tthis._sectionTypeArr = this.sectionTypes();\n\t\tconst context = this;\n\t\telement.classed(\"design-mode\", this.designMode());\n\t\tthis.setLayoutOffsets();\n\t\tconst rows = this.contentDiv.selectAll(\".cell_\" + this._id).data(this.content(), function(d) {\n\t\t\treturn d._id;\n\t\t});\n\t\tconst rowsUpdate = rows.enter().append(\"div\").classed(\"cell_\" + this._id, true).style(\"position\", \"absolute\").each(function(d, i) {\n\t\t\tselect(this).classed(\"border-cell border-cell-\" + context._sectionTypeArr[i], true);\n\t\t\td.target(this);\n\t\t\tselect(\"#\" + context.id() + \" > div.borderHandle_\" + context._sectionTypeArr[i]).classed(\"borderHandleDisabled\", false);\n\t\t}).merge(rows);\n\t\trowsUpdate.each(function(d, idx) {\n\t\t\tconst sectionType = context.sectionTypes()[idx];\n\t\t\tif (typeof context[sectionType + \"ShrinkWrap\"] !== \"undefined\" && context[sectionType + \"ShrinkWrap\"]()) {\n\t\t\t\td.render();\n\t\t\t\tcontext._shrinkWrapBoxes[sectionType] = d.widget().getBBox(true);\n\t\t\t} else delete context._shrinkWrapBoxes[sectionType];\n\t\t});\n\t\tconst drag$1 = drag().on(\"start\", function(d, i) {\n\t\t\tcontext.dragStart.call(context, d, i);\n\t\t}).on(\"drag\", function(d, i) {\n\t\t\tcontext.dragTick.call(context, d, i);\n\t\t}).on(\"end\", function(d, i) {\n\t\t\tcontext.dragEnd.call(context, d, i);\n\t\t});\n\t\tif (this.designMode()) element.selectAll(\"#\" + this.id() + \" > div.borderHandle\").call(drag$1);\n\t\telse element.selectAll(\"#\" + this.id() + \" > div.borderHandle\").on(\".drag\", null);\n\t\tconst layoutObj = this.borderLayoutObject();\n\t\tthis.content().forEach(function(cell, i) {\n\t\t\tcell._fixedLeft = layoutObj[this.sectionTypes()[i]].left;\n\t\t\tcell._fixedTop = layoutObj[this.sectionTypes()[i]].top;\n\t\t\tcell._fixedWidth = layoutObj[this.sectionTypes()[i]].width;\n\t\t\tcell._fixedHeight = layoutObj[this.sectionTypes()[i]].height;\n\t\t\tcell._dragHandles = [];\n\t\t}, this);\n\t\trowsUpdate.style(\"left\", function(d) {\n\t\t\treturn d._fixedLeft + \"px\";\n\t\t}).style(\"top\", function(d) {\n\t\t\treturn d._fixedTop + \"px\";\n\t\t}).style(\"width\", function(d) {\n\t\t\treturn d._fixedWidth - context.gutter() + \"px\";\n\t\t}).style(\"height\", function(d) {\n\t\t\treturn d._fixedHeight - context.gutter() + \"px\";\n\t\t}).each(function(d) {\n\t\t\td._placeholderElement.attr(\"draggable\", context.designMode()).selectAll(\".dragHandle\").attr(\"draggable\", context.designMode());\n\t\t\td.surfacePadding(context.surfacePadding()).resize();\n\t\t});\n\t\trows.exit().each(function(d) {\n\t\t\td.target(null);\n\t\t}).remove();\n\t\tthis.getCellSizes();\n\t\telement.selectAll(\"#\" + this.id() + \" > div.borderHandle\").each(function() {\n\t\t\tconst handle = select(this);\n\t\t\tif (handle.classed(\"borderHandle_top\")) {\n\t\t\t\thandle.style(\"width\", context._cellSizes.width + \"px\");\n\t\t\t\thandle.style(\"top\", context._cellSizes.topHeight - 3 + \"px\");\n\t\t\t} else if (handle.classed(\"borderHandle_right\")) {\n\t\t\t\thandle.style(\"left\", context._cellSizes.width - context._cellSizes.rightWidth + \"px\");\n\t\t\t\thandle.style(\"top\", context._cellSizes.topHeight + 3 + \"px\");\n\t\t\t\thandle.style(\"height\", context._cellSizes.rightHeight + \"px\");\n\t\t\t} else if (handle.classed(\"borderHandle_bottom\")) {\n\t\t\t\thandle.style(\"width\", context._cellSizes.width + \"px\");\n\t\t\t\thandle.style(\"top\", context._cellSizes.height - context._cellSizes.bottomHeight - 3 + \"px\");\n\t\t\t} else if (handle.classed(\"borderHandle_left\")) {\n\t\t\t\thandle.style(\"left\", context._cellSizes.leftWidth + \"px\");\n\t\t\t\thandle.style(\"height\", context._cellSizes.leftHeight + \"px\");\n\t\t\t\thandle.style(\"top\", context._cellSizes.topHeight + 3 + \"px\");\n\t\t\t}\n\t\t});\n\t}\n\tgetCellSizes() {\n\t\tconst context = this;\n\t\tcontext._cellSizes = {};\n\t\tconst contentRect = this.element().node().getBoundingClientRect();\n\t\tcontext._cellSizes.width = contentRect.width;\n\t\tcontext._cellSizes.height = contentRect.height;\n\t\tthis.element().selectAll(\"#\" + this.id() + \" > div > div.border-cell\").each(function() {\n\t\t\tconst cell = select(this);\n\t\t\tif (typeof cell.node === \"function\") {\n\t\t\t\tconst rect = cell.node().getBoundingClientRect();\n\t\t\t\tif (cell.classed(\"border-cell-top\")) context._cellSizes.topHeight = rect.height;\n\t\t\t\telse if (cell.classed(\"border-cell-left\")) {\n\t\t\t\t\tcontext._cellSizes.leftWidth = rect.width;\n\t\t\t\t\tcontext._cellSizes.leftHeight = rect.height;\n\t\t\t\t} else if (cell.classed(\"border-cell-right\")) {\n\t\t\t\t\tcontext._cellSizes.rightWidth = rect.width;\n\t\t\t\t\tcontext._cellSizes.rightHeight = rect.height;\n\t\t\t\t} else if (cell.classed(\"border-cell-bottom\")) context._cellSizes.bottomHeight = rect.height;\n\t\t\t}\n\t\t});\n\t\t[\n\t\t\t\"height\",\n\t\t\t\"width\",\n\t\t\t\"topHeight\",\n\t\t\t\"bottomHeight\",\n\t\t\t\"leftHeight\",\n\t\t\t\"rightHeight\",\n\t\t\t\"leftWidth\",\n\t\t\t\"rightWidth\"\n\t\t].forEach(function(size) {\n\t\t\tcontext._cellSizes[size] = context._cellSizes[size] === void 0 ? 0 : context._cellSizes[size];\n\t\t});\n\t}\n\tpostUpdate(domNode, element) {\n\t\tconst context = this;\n\t\tthis.content().forEach(function(n) {\n\t\t\tif (n._element.node() !== null && n.widget()) {\n\t\t\t\tconst prevBox = n.widget().getBBox(false, true);\n\t\t\t\tconst currBox = n.widget().getBBox(true, true);\n\t\t\t\tif (prevBox.width !== currBox.width || prevBox.height !== currBox.height) context.lazyRender();\n\t\t\t}\n\t\t});\n\t}\n\texit(domNode, element) {\n\t\tthis.content().forEach((w) => w.target(null));\n\t\tsuper.exit(domNode, element);\n\t}\n};\nBorder.prototype._class += \" layout_Border\";\nBorder.prototype.publish(\"designMode\", false, \"boolean\", \"Design Mode\", null, { tags: [\"Basic\"] });\nBorder.prototype.publish(\"content\", [], \"widgetArray\", \"widgets\", null, { tags: [\"Intermediate\"] });\nBorder.prototype.publish(\"gutter\", 0, \"number\", \"Gap Between Widgets\", null, { tags: [\"Basic\"] });\nBorder.prototype.publish(\"topShrinkWrap\", false, \"boolean\", \"'Top' Cell shrinks to fit content\", null, { tags: [\"Intermediate\"] });\nBorder.prototype.publish(\"leftShrinkWrap\", false, \"boolean\", \"'Left' Cell shrinks to fit content\", null, { tags: [\"Intermediate\"] });\nBorder.prototype.publish(\"rightShrinkWrap\", false, \"boolean\", \"'Right' Cell shrinks to fit content\", null, { tags: [\"Intermediate\"] });\nBorder.prototype.publish(\"bottomShrinkWrap\", false, \"boolean\", \"'Bottom' Cell shrinks to fit content\", null, { tags: [\"Intermediate\"] });\nBorder.prototype.publish(\"topSize\", 0, \"number\", \"Height of the 'Top' Cell (px)\", null, { tags: [\"Private\"] });\nBorder.prototype.publish(\"leftSize\", 0, \"number\", \"Width of the 'Left' Cell (px)\", null, { tags: [\"Private\"] });\nBorder.prototype.publish(\"rightSize\", 0, \"number\", \"Width of the 'Right' Cell (px)\", null, { tags: [\"Private\"] });\nBorder.prototype.publish(\"bottomSize\", 0, \"number\", \"Height of the 'Bottom' Cell (px)\", null, { tags: [\"Private\"] });\nBorder.prototype.publish(\"topPercentage\", 20, \"number\", \"Percentage (of parent) Height of the 'Top' Cell\", null, { tags: [\"Private\"] });\nBorder.prototype.publish(\"leftPercentage\", 20, \"number\", \"Percentage (of parent) Width of the 'Left' Cell\", null, { tags: [\"Private\"] });\nBorder.prototype.publish(\"rightPercentage\", 20, \"number\", \"Percentage (of parent) Width of the 'Right' Cell\", null, { tags: [\"Private\"] });\nBorder.prototype.publish(\"bottomPercentage\", 20, \"number\", \"Percentage (of parent) Height of the 'Bottom' Cell\", null, { tags: [\"Private\"] });\nBorder.prototype.publish(\"surfacePadding\", 0, \"number\", \"Cell Padding (px)\", null, { tags: [\"Intermediate\"] });\nBorder.prototype.publish(\"sectionTypes\", [], \"array\", \"Section Types sharing an index with 'content' - Used to determine position/size.\", null, { tags: [\"Private\"] });\n\n//#endregion\n//#region src/Border2.ts\nvar WidgetDiv = class {\n\t_div;\n\t_overlay = false;\n\t_overflowX = \"visible\";\n\t_overflowY = \"visible\";\n\t_widget;\n\tconstructor(div) {\n\t\tthis._div = div;\n\t}\n\toverlay(_) {\n\t\tif (!arguments.length) return this._overlay;\n\t\tthis._overlay = _;\n\t\treturn this;\n\t}\n\toverflowX(_) {\n\t\tif (!arguments.length) return this._overflowX;\n\t\tthis._overflowX = _;\n\t\tthis._div.style(\"overflow-x\", _);\n\t\treturn this;\n\t}\n\toverflowY(_) {\n\t\tif (!arguments.length) return this._overflowY;\n\t\tthis._overflowY = _;\n\t\tthis._div.style(\"overflow-y\", _);\n\t\treturn this;\n\t}\n\telement() {\n\t\treturn this._div;\n\t}\n\tnode() {\n\t\treturn this._div.node();\n\t}\n\twidget(_) {\n\t\tif (!arguments.length) return this._widget;\n\t\tif (this._widget !== _) {\n\t\t\tif (this._widget) this._widget.target(null);\n\t\t\tthis._widget = _;\n\t\t\tif (this._widget) this._widget.target(this._div.node());\n\t\t}\n\t\treturn this;\n\t}\n\tresize(size) {\n\t\tif (this._widget) {\n\t\t\tthis._div.style(\"width\", `${size.width}px`).style(\"height\", `${size.height}px`);\n\t\t\tthis._widget.resize(size);\n\t\t}\n\t\treturn this;\n\t}\n\tasync render(getBBox, availableHeight, availableWidth) {\n\t\tlet overflowX = this.overflowX();\n\t\tif (!this.overlay() && overflowX === \"visible\") overflowX = null;\n\t\tlet overflowY = this.overflowY();\n\t\tif (!this.overlay() && overflowY === \"visible\") overflowY = null;\n\t\tthis._div.style(\"height\", this.overlay() ? \"0px\" : null).style(\"overflow-x\", overflowX).style(\"overflow-y\", overflowY);\n\t\tif (this._widget) return this._widget.renderPromise().then((w) => {\n\t\t\tif (getBBox && this._widget.visible()) {\n\t\t\t\tconst retVal = this._widget.getBBox();\n\t\t\t\tretVal.width += 8;\n\t\t\t\tif (availableHeight !== void 0 && retVal.height > availableHeight) retVal.width += Platform.getScrollbarWidth();\n\t\t\t\tif (availableWidth !== void 0 && retVal.width > availableWidth) retVal.height += Platform.getScrollbarWidth();\n\t\t\t\tif (this.overlay()) retVal.height = 0;\n\t\t\t\telse retVal.height += 4;\n\t\t\t\treturn retVal;\n\t\t\t}\n\t\t\treturn getBBox ? {\n\t\t\t\tx: 0,\n\t\t\t\ty: 0,\n\t\t\t\twidth: 0,\n\t\t\t\theight: 0\n\t\t\t} : void 0;\n\t\t});\n\t\telse return Promise.resolve(getBBox ? {\n\t\t\tx: 0,\n\t\t\ty: 0,\n\t\t\twidth: 0,\n\t\t\theight: 0\n\t\t} : void 0);\n\t}\n};\nvar Border2 = class extends HTMLWidget {\n\t_bodyElement;\n\t_topWA;\n\t_leftWA;\n\t_centerWA;\n\t_rightWA;\n\t_bottomWA;\n\t_topPrevOverflow;\n\t_leftPrevOverflow;\n\t_rightPrevOverflow;\n\t_bottomPrevOverflow;\n\tconstructor() {\n\t\tsuper();\n\t\tthis._tag = \"div\";\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tconst topElement = element.append(\"header\");\n\t\tthis._bodyElement = element.append(\"div\").attr(\"class\", \"body\");\n\t\tconst centerElement = this._bodyElement.append(\"div\").attr(\"class\", \"center\");\n\t\tconst leftElement = this._bodyElement.append(\"div\").attr(\"class\", \"lhs\");\n\t\tconst rightElement = this._bodyElement.append(\"div\").attr(\"class\", \"rhs\");\n\t\tconst bottomElement = element.append(\"div\").attr(\"class\", \"footer\");\n\t\tthis._topWA = new WidgetDiv(topElement);\n\t\tthis._centerWA = new WidgetDiv(centerElement);\n\t\tthis._leftWA = new WidgetDiv(leftElement);\n\t\tthis._rightWA = new WidgetDiv(rightElement);\n\t\tthis._bottomWA = new WidgetDiv(bottomElement);\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t\tthis._topWA.element().style(\"display\", this.showTop() ? null : \"none\");\n\t\tthis._rightWA.element().style(\"display\", this.showRight() ? null : \"none\");\n\t\tthis._bottomWA.element().style(\"display\", this.showBottom() ? null : \"none\");\n\t\tthis._leftWA.element().style(\"display\", this.showLeft() ? null : \"none\");\n\t\tif (this.topOverflowX() !== this._topWA.overflowX()) this._topWA.overflowX(this.topOverflowX());\n\t\tif (this.rightOverflowX() !== this._rightWA.overflowX()) this._rightWA.overflowX(this.rightOverflowX());\n\t\tif (this.bottomOverflowX() !== this._bottomWA.overflowX()) this._bottomWA.overflowX(this.bottomOverflowX());\n\t\tif (this.leftOverflowX() !== this._leftWA.overflowX()) this._leftWA.overflowX(this.leftOverflowX());\n\t\tif (this.topOverflowY() !== this._topWA.overflowY()) this._topWA.overflowY(this.topOverflowY());\n\t\tif (this.rightOverflowY() !== this._rightWA.overflowY()) this._rightWA.overflowY(this.rightOverflowY());\n\t\tif (this.bottomOverflowY() !== this._bottomWA.overflowY()) this._bottomWA.overflowY(this.bottomOverflowY());\n\t\tif (this.leftOverflowY() !== this._leftWA.overflowY()) this._leftWA.overflowY(this.leftOverflowY());\n\t\tthis.element().style(\"width\", `${this.width()}px`).style(\"height\", `${this.height()}px`);\n\t}\n\ttargetNull(w) {\n\t\tif (w) w.target(null);\n\t}\n\texit(domNode, element) {\n\t\tthis.targetNull(this.center());\n\t\tthis.targetNull(this.bottom());\n\t\tthis.targetNull(this.right());\n\t\tthis.targetNull(this.left());\n\t\tthis.targetNull(this.top());\n\t\tsuper.exit(domNode, element);\n\t}\n\tswap(sectionA, sectionB) {\n\t\tconst a$1 = this[sectionA]();\n\t\tconst b = this[sectionB]();\n\t\tthis.targetNull(a$1);\n\t\tthis.targetNull(b);\n\t\tthis[`_${sectionA}WA`].widget(null);\n\t\tthis[`_${sectionB}WA`].widget(null);\n\t\tthis[sectionA](b);\n\t\tthis[sectionB](a$1);\n\t\treturn this;\n\t}\n\trender(callback) {\n\t\treturn super.render((w) => {\n\t\t\tif (this._topWA) this._topWA.widget(this.top()).overlay(this.topOverlay()).render(true).then(async (topBBox) => {\n\t\t\t\tconst bottomBBox = await this._bottomWA.widget(this.bottom()).render(true, void 0, this.width());\n\t\t\t\tconst availableHeight = this.height() - (topBBox.height + bottomBBox.height);\n\t\t\t\tconst leftBBox = await this._leftWA.widget(this.left()).render(true, availableHeight);\n\t\t\t\tconst rightBBox = await this._rightWA.widget(this.right()).render(true, availableHeight);\n\t\t\t\tif (this.bottomHeight_exists()) bottomBBox.height = this.bottomHeight();\n\t\t\t\tconst bodyWidth = this.width() - (leftBBox.width + rightBBox.width);\n\t\t\t\tconst bodyHeight = this.height() - (topBBox.height + bottomBBox.height);\n\t\t\t\tconst centerOverflowX = this.centerOverflowX();\n\t\t\t\tconst centerOverflowY = this.centerOverflowY();\n\t\t\t\tconst scrollCenterX = [\"auto\", \"scroll\"].indexOf(centerOverflowX) !== -1;\n\t\t\t\tconst scrollCenterY = [\"auto\", \"scroll\"].indexOf(centerOverflowY) !== -1;\n\t\t\t\tif (scrollCenterX || scrollCenterY) this._centerWA.overflowX(this.centerOverflowX()).overflowY(this.centerOverflowY()).widget(this.center()).resize({\n\t\t\t\t\twidth: bodyWidth,\n\t\t\t\t\theight: bodyHeight\n\t\t\t\t}).render();\n\t\t\t\tthis._bodyElement.style(\"height\", `${bodyHeight}px`);\n\t\t\t\tconst promises = [\n\t\t\t\t\tthis._topWA.overflowX(this.topOverflowX()).overflowY(this.topOverflowY()).resize({\n\t\t\t\t\t\twidth: this.width(),\n\t\t\t\t\t\theight: topBBox.height\n\t\t\t\t\t}).render(),\n\t\t\t\t\tthis._leftWA.overflowX(this.leftOverflowX()).overflowY(this.leftOverflowY()).resize({\n\t\t\t\t\t\twidth: leftBBox.width,\n\t\t\t\t\t\theight: bodyHeight\n\t\t\t\t\t}).render(),\n\t\t\t\t\tthis._rightWA.overflowX(this.rightOverflowX()).overflowY(this.rightOverflowY()).resize({\n\t\t\t\t\t\twidth: rightBBox.width,\n\t\t\t\t\t\theight: bodyHeight\n\t\t\t\t\t}).render(),\n\t\t\t\t\tthis._centerWA.overflowX(this.centerOverflowX()).overflowY(this.centerOverflowY()).widget(this.center()).resize({\n\t\t\t\t\t\twidth: bodyWidth,\n\t\t\t\t\t\theight: bodyHeight\n\t\t\t\t\t}).render(),\n\t\t\t\t\tthis._bottomWA.overflowX(this.bottomOverflowX()).overflowY(this.bottomOverflowY()).resize({\n\t\t\t\t\t\twidth: this.width(),\n\t\t\t\t\t\theight: bottomBBox.height\n\t\t\t\t\t}).render()\n\t\t\t\t];\n\t\t\t\tPromise.all(promises).then((promises$1) => {\n\t\t\t\t\tif (callback) callback(this);\n\t\t\t\t});\n\t\t\t});\n\t\t\telse if (callback) callback(this);\n\t\t});\n\t}\n};\nBorder2.prototype._class += \" layout_Border2\";\nBorder2.prototype.publish(\"showTop\", true, \"boolean\", \"If true, top widget adapter will display\");\nBorder2.prototype.publish(\"showRight\", true, \"boolean\", \"If true, right widget adapter will display\");\nBorder2.prototype.publish(\"showBottom\", true, \"boolean\", \"If true, bottom widget adapter will display\");\nBorder2.prototype.publish(\"showLeft\", true, \"boolean\", \"If true, left widget adapter will display\");\nBorder2.prototype.publish(\"topOverflowX\", \"visible\", \"set\", \"Sets the overflow-x css style for the top widget adapter\", [\n\t\"hidden\",\n\t\"scroll\",\n\t\"visible\",\n\t\"auto\"\n]);\nBorder2.prototype.publish(\"rightOverflowX\", \"visible\", \"set\", \"Sets the overflow-x css style for the right widget adapter\", [\n\t\"hidden\",\n\t\"scroll\",\n\t\"visible\",\n\t\"auto\"\n]);\nBorder2.prototype.publish(\"bottomOverflowX\", \"visible\", \"set\", \"Sets the overflow-x css style for the bottom widget adapter\", [\n\t\"hidden\",\n\t\"scroll\",\n\t\"visible\",\n\t\"auto\"\n]);\nBorder2.prototype.publish(\"leftOverflowX\", \"visible\", \"set\", \"Sets the overflow-x css style for the left widget adapter\", [\n\t\"hidden\",\n\t\"scroll\",\n\t\"visible\",\n\t\"auto\"\n]);\nBorder2.prototype.publish(\"centerOverflowX\", \"visible\", \"set\", \"Sets the overflow-x css style for the center widget adapter\", [\n\t\"hidden\",\n\t\"scroll\",\n\t\"visible\",\n\t\"auto\"\n]);\nBorder2.prototype.publish(\"topOverflowY\", \"visible\", \"set\", \"Sets the overflow-y css style for the top widget adapter\", [\n\t\"hidden\",\n\t\"scroll\",\n\t\"visible\",\n\t\"auto\"\n]);\nBorder2.prototype.publish(\"rightOverflowY\", \"visible\", \"set\", \"Sets the overflow-y css style for the right widget adapter\", [\n\t\"hidden\",\n\t\"scroll\",\n\t\"visible\",\n\t\"auto\"\n]);\nBorder2.prototype.publish(\"bottomOverflowY\", \"visible\", \"set\", \"Sets the overflow-y css style for the bottom widget adapter\", [\n\t\"hidden\",\n\t\"scroll\",\n\t\"visible\",\n\t\"auto\"\n]);\nBorder2.prototype.publish(\"leftOverflowY\", \"visible\", \"set\", \"Sets the overflow-y css style for the left widget adapter\", [\n\t\"hidden\",\n\t\"scroll\",\n\t\"visible\",\n\t\"auto\"\n]);\nBorder2.prototype.publish(\"centerOverflowY\", \"visible\", \"set\", \"Sets the overflow-y css style for the center widget adapter\", [\n\t\"hidden\",\n\t\"scroll\",\n\t\"visible\",\n\t\"auto\"\n]);\nBorder2.prototype.publish(\"top\", null, \"widget\", \"Top Widget\", void 0, { render: false });\nBorder2.prototype.publish(\"topOverlay\", false, \"boolean\", \"Overlay Top Widget\");\nBorder2.prototype.publish(\"left\", null, \"widget\", \"Left Widget\", void 0, { render: false });\nBorder2.prototype.publish(\"center\", null, \"widget\", \"Center Widget\", void 0, { render: false });\nBorder2.prototype.publish(\"right\", null, \"widget\", \"Right Widget\", void 0, { render: false });\nBorder2.prototype.publish(\"bottom\", null, \"widget\", \"Bottom Widget\", void 0, { render: false });\nBorder2.prototype.publish(\"bottomHeight\", null, \"number\", \"Bottom Fixed Height\", void 0, { optional: true });\n\n//#endregion\n//#region src/Carousel.ts\nvar Carousel = class extends HTMLWidget {\n\t_prevActive = 0;\n\t_root;\n\tactiveWidget() {\n\t\treturn this.widgets()[this.active()];\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tthis._root = element.append(\"div\").attr(\"id\", `${this.id()}_root`);\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t\tconst active = this.active();\n\t\tconst width = this.width();\n\t\tthis._root.style(\"width\", `${width}px`).style(\"height\", `${this.height()}px`);\n\t\tconst widgetElements = this._root.selectAll(`#${this.id()}_root > .carouselItem`).data(this.widgets(), (d) => d.id());\n\t\tconst update = widgetElements.enter().append(\"div\").attr(\"class\", \"carouselItem\").each(function(w) {\n\t\t\tw.target(this);\n\t\t}).merge(widgetElements).style(\"left\", (d, i) => `${(i - this._prevActive) * width}px`).style(\"width\", `${width}px`);\n\t\tif (this._prevActive !== active) {\n\t\t\tupdate.style(\"display\", (d, i) => i === this._prevActive || i === active ? null : \"none\").transition().duration(this.transitionDuration()).style(\"left\", (d, i) => `${(i - active) * width}px`).on(\"end\", function(d, i) {\n\t\t\t\tselect(this).style(\"display\", () => i === active ? null : \"none\");\n\t\t\t});\n\t\t\tthis._prevActive = active;\n\t\t}\n\t\twidgetElements.exit().each(function(w) {\n\t\t\tw.target(null);\n\t\t}).remove();\n\t}\n\texit(domNode, element) {\n\t\tthis.widgets().forEach((w) => w.target(null));\n\t\tsuper.exit(domNode, element);\n\t}\n\trender(callback) {\n\t\treturn super.render((w) => {\n\t\t\tif (!this.visible() || this.isDOMHidden()) {\n\t\t\t\tif (callback) callback(w);\n\t\t\t} else {\n\t\t\t\tconst aw = this.activeWidget();\n\t\t\t\tif (aw) aw.resize(this.size()).render((w2) => {\n\t\t\t\t\tif (callback) callback(w);\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n};\nCarousel.prototype._class += \" layout_Carousel\";\nCarousel.prototype.publish(\"widgets\", [], \"widgetArray\", \"Widgets\", null, { render: false });\nCarousel.prototype.publish(\"active\", 0, \"number\", \"Active widget\");\nCarousel.prototype.publish(\"transitionDuration\", 500, \"number\", \"Transition duration\");\n\n//#endregion\n//#region ../../node_modules/d3-path/src/path.js\nvar pi$1 = Math.PI, tau$1 = 2 * pi$1, epsilon = 1e-6, tauEpsilon = tau$1 - epsilon;\nfunction Path() {\n\tthis._x0 = this._y0 = this._x1 = this._y1 = null;\n\tthis._ = \"\";\n}\nfunction path() {\n\treturn new Path();\n}\nPath.prototype = path.prototype = {\n\tconstructor: Path,\n\tmoveTo: function(x, y) {\n\t\tthis._ += \"M\" + (this._x0 = this._x1 = +x) + \",\" + (this._y0 = this._y1 = +y);\n\t},\n\tclosePath: function() {\n\t\tif (this._x1 !== null) {\n\t\t\tthis._x1 = this._x0, this._y1 = this._y0;\n\t\t\tthis._ += \"Z\";\n\t\t}\n\t},\n\tlineTo: function(x, y) {\n\t\tthis._ += \"L\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n\t},\n\tquadraticCurveTo: function(x1, y1, x, y) {\n\t\tthis._ += \"Q\" + +x1 + \",\" + +y1 + \",\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n\t},\n\tbezierCurveTo: function(x1, y1, x2, y2, x, y) {\n\t\tthis._ += \"C\" + +x1 + \",\" + +y1 + \",\" + +x2 + \",\" + +y2 + \",\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n\t},\n\tarcTo: function(x1, y1, x2, y2, r) {\n\t\tx1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r;\n\t\tvar x0 = this._x1, y0 = this._y1, x21 = x2 - x1, y21 = y2 - y1, x01 = x0 - x1, y01 = y0 - y1, l01_2 = x01 * x01 + y01 * y01;\n\t\tif (r < 0) throw new Error(\"negative radius: \" + r);\n\t\tif (this._x1 === null) this._ += \"M\" + (this._x1 = x1) + \",\" + (this._y1 = y1);\n\t\telse if (!(l01_2 > epsilon));\n\t\telse if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) this._ += \"L\" + (this._x1 = x1) + \",\" + (this._y1 = y1);\n\t\telse {\n\t\t\tvar x20 = x2 - x0, y20 = y2 - y0, l21_2 = x21 * x21 + y21 * y21, l20_2 = x20 * x20 + y20 * y20, l21 = Math.sqrt(l21_2), l01 = Math.sqrt(l01_2), l = r * Math.tan((pi$1 - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2), t01 = l / l01, t21 = l / l21;\n\t\t\tif (Math.abs(t01 - 1) > epsilon) this._ += \"L\" + (x1 + t01 * x01) + \",\" + (y1 + t01 * y01);\n\t\t\tthis._ += \"A\" + r + \",\" + r + \",0,0,\" + +(y01 * x20 > x01 * y20) + \",\" + (this._x1 = x1 + t21 * x21) + \",\" + (this._y1 = y1 + t21 * y21);\n\t\t}\n\t},\n\tarc: function(x, y, r, a0, a1, ccw) {\n\t\tx = +x, y = +y, r = +r, ccw = !!ccw;\n\t\tvar dx = r * Math.cos(a0), dy = r * Math.sin(a0), x0 = x + dx, y0 = y + dy, cw = 1 ^ ccw, da = ccw ? a0 - a1 : a1 - a0;\n\t\tif (r < 0) throw new Error(\"negative radius: \" + r);\n\t\tif (this._x1 === null) this._ += \"M\" + x0 + \",\" + y0;\n\t\telse if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) this._ += \"L\" + x0 + \",\" + y0;\n\t\tif (!r) return;\n\t\tif (da < 0) da = da % tau$1 + tau$1;\n\t\tif (da > tauEpsilon) this._ += \"A\" + r + \",\" + r + \",0,1,\" + cw + \",\" + (x - dx) + \",\" + (y - dy) + \"A\" + r + \",\" + r + \",0,1,\" + cw + \",\" + (this._x1 = x0) + \",\" + (this._y1 = y0);\n\t\telse if (da > epsilon) this._ += \"A\" + r + \",\" + r + \",0,\" + +(da >= pi$1) + \",\" + cw + \",\" + (this._x1 = x + r * Math.cos(a1)) + \",\" + (this._y1 = y + r * Math.sin(a1));\n\t},\n\trect: function(x, y, w, h) {\n\t\tthis._ += \"M\" + (this._x0 = this._x1 = +x) + \",\" + (this._y0 = this._y1 = +y) + \"h\" + +w + \"v\" + +h + \"h\" + -w + \"Z\";\n\t},\n\ttoString: function() {\n\t\treturn this._;\n\t}\n};\nvar path_default = path;\n\n//#endregion\n//#region ../../node_modules/d3-shape/src/constant.js\nfunction constant_default(x) {\n\treturn function constant() {\n\t\treturn x;\n\t};\n}\n\n//#endregion\n//#region ../../node_modules/d3-shape/src/math.js\nvar pi = Math.PI;\nvar halfPi = pi / 2;\nvar tau = 2 * pi;\n\n//#endregion\n//#region ../../node_modules/d3-shape/src/symbol/circle.js\nvar circle_default = { draw: function(context, size) {\n\tvar r = Math.sqrt(size / pi);\n\tcontext.moveTo(r, 0);\n\tcontext.arc(0, 0, r, 0, tau);\n} };\n\n//#endregion\n//#region ../../node_modules/d3-shape/src/symbol/cross.js\nvar cross_default = { draw: function(context, size) {\n\tvar r = Math.sqrt(size / 5) / 2;\n\tcontext.moveTo(-3 * r, -r);\n\tcontext.lineTo(-r, -r);\n\tcontext.lineTo(-r, -3 * r);\n\tcontext.lineTo(r, -3 * r);\n\tcontext.lineTo(r, -r);\n\tcontext.lineTo(3 * r, -r);\n\tcontext.lineTo(3 * r, r);\n\tcontext.lineTo(r, r);\n\tcontext.lineTo(r, 3 * r);\n\tcontext.lineTo(-r, 3 * r);\n\tcontext.lineTo(-r, r);\n\tcontext.lineTo(-3 * r, r);\n\tcontext.closePath();\n} };\n\n//#endregion\n//#region ../../node_modules/d3-shape/src/symbol/diamond.js\nvar tan30 = Math.sqrt(1 / 3), tan30_2 = tan30 * 2;\nvar diamond_default = { draw: function(context, size) {\n\tvar y = Math.sqrt(size / tan30_2), x = y * tan30;\n\tcontext.moveTo(0, -y);\n\tcontext.lineTo(x, 0);\n\tcontext.lineTo(0, y);\n\tcontext.lineTo(-x, 0);\n\tcontext.closePath();\n} };\n\n//#endregion\n//#region ../../node_modules/d3-shape/src/symbol/star.js\nvar ka = .8908130915292852, kr = Math.sin(pi / 10) / Math.sin(7 * pi / 10), kx = Math.sin(tau / 10) * kr, ky = -Math.cos(tau / 10) * kr;\nvar star_default = { draw: function(context, size) {\n\tvar r = Math.sqrt(size * ka), x = kx * r, y = ky * r;\n\tcontext.moveTo(0, -r);\n\tcontext.lineTo(x, y);\n\tfor (var i = 1; i < 5; ++i) {\n\t\tvar a$1 = tau * i / 5, c$1 = Math.cos(a$1), s$1 = Math.sin(a$1);\n\t\tcontext.lineTo(s$1 * r, -c$1 * r);\n\t\tcontext.lineTo(c$1 * x - s$1 * y, s$1 * x + c$1 * y);\n\t}\n\tcontext.closePath();\n} };\n\n//#endregion\n//#region ../../node_modules/d3-shape/src/symbol/square.js\nvar square_default = { draw: function(context, size) {\n\tvar w = Math.sqrt(size), x = -w / 2;\n\tcontext.rect(x, x, w, w);\n} };\n\n//#endregion\n//#region ../../node_modules/d3-shape/src/symbol/triangle.js\nvar sqrt3 = Math.sqrt(3);\nvar triangle_default = { draw: function(context, size) {\n\tvar y = -Math.sqrt(size / (sqrt3 * 3));\n\tcontext.moveTo(0, y * 2);\n\tcontext.lineTo(-sqrt3 * y, -y);\n\tcontext.lineTo(sqrt3 * y, -y);\n\tcontext.closePath();\n} };\n\n//#endregion\n//#region ../../node_modules/d3-shape/src/symbol/wye.js\nvar c = -.5, s = Math.sqrt(3) / 2, k = 1 / Math.sqrt(12), a = (k / 2 + 1) * 3;\nvar wye_default = { draw: function(context, size) {\n\tvar r = Math.sqrt(size / a), x0 = r / 2, y0 = r * k, x1 = x0, y1 = r * k + r, x2 = -x1, y2 = y1;\n\tcontext.moveTo(x0, y0);\n\tcontext.lineTo(x1, y1);\n\tcontext.lineTo(x2, y2);\n\tcontext.lineTo(c * x0 - s * y0, s * x0 + c * y0);\n\tcontext.lineTo(c * x1 - s * y1, s * x1 + c * y1);\n\tcontext.lineTo(c * x2 - s * y2, s * x2 + c * y2);\n\tcontext.lineTo(c * x0 + s * y0, c * y0 - s * x0);\n\tcontext.lineTo(c * x1 + s * y1, c * y1 - s * x1);\n\tcontext.lineTo(c * x2 + s * y2, c * y2 - s * x2);\n\tcontext.closePath();\n} };\n\n//#endregion\n//#region ../../node_modules/d3-shape/src/symbol.js\nfunction symbol_default() {\n\tvar type = constant_default(circle_default), size = constant_default(64), context = null;\n\tfunction symbol() {\n\t\tvar buffer;\n\t\tif (!context) context = buffer = path_default();\n\t\ttype.apply(this, arguments).draw(context, +size.apply(this, arguments));\n\t\tif (buffer) return context = null, buffer + \"\" || null;\n\t}\n\tsymbol.type = function(_) {\n\t\treturn arguments.length ? (type = typeof _ === \"function\" ? _ : constant_default(_), symbol) : type;\n\t};\n\tsymbol.size = function(_) {\n\t\treturn arguments.length ? (size = typeof _ === \"function\" ? _ : constant_default(+_), symbol) : size;\n\t};\n\tsymbol.context = function(_) {\n\t\treturn arguments.length ? (context = _ == null ? null : _, symbol) : context;\n\t};\n\treturn symbol;\n}\n\n//#endregion\n//#region ../../node_modules/d3-svg-legend/indexRollupNext.js\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function(obj) {\n\treturn typeof obj;\n} : function(obj) {\n\treturn obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\nvar d3_identity = function d3_identity$1(d) {\n\treturn d;\n};\nvar d3_reverse = function d3_reverse$1(arr) {\n\tvar mirror = [];\n\tfor (var i = 0, l = arr.length; i < l; i++) mirror[i] = arr[l - i - 1];\n\treturn mirror;\n};\nvar d3_textWrapping = function d3_textWrapping$1(text, width) {\n\ttext.each(function() {\n\t\tvar text$1 = select(this), words = text$1.text().split(/\\s+/).reverse(), word, line = [], lineHeight = 1.2;\n\t\ttext$1.attr(\"y\");\n\t\tvar dy = parseFloat(text$1.attr(\"dy\")) || 0, tspan = text$1.text(null).append(\"tspan\").attr(\"x\", 0).attr(\"dy\", dy + \"em\");\n\t\twhile (word = words.pop()) {\n\t\t\tline.push(word);\n\t\t\ttspan.text(line.join(\" \"));\n\t\t\tif (tspan.node().getComputedTextLength() > width && line.length > 1) {\n\t\t\t\tline.pop();\n\t\t\t\ttspan.text(line.join(\" \"));\n\t\t\t\tline = [word];\n\t\t\t\ttspan = text$1.append(\"tspan\").attr(\"x\", 0).attr(\"dy\", lineHeight + dy + \"em\").text(word);\n\t\t\t}\n\t\t}\n\t});\n};\nvar d3_mergeLabels = function d3_mergeLabels$1() {\n\tvar gen = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];\n\tvar labels = arguments[1];\n\tvar domain = arguments[2];\n\tvar range = arguments[3];\n\tvar labelDelimiter = arguments[4];\n\tif ((typeof labels === \"undefined\" ? \"undefined\" : _typeof(labels)) === \"object\") {\n\t\tif (labels.length === 0) return gen;\n\t\tvar i = labels.length;\n\t\tfor (; i < gen.length; i++) labels.push(gen[i]);\n\t\treturn labels;\n\t} else if (typeof labels === \"function\") {\n\t\tvar customLabels = [];\n\t\tvar genLength = gen.length;\n\t\tfor (var _i = 0; _i < genLength; _i++) customLabels.push(labels({\n\t\t\ti: _i,\n\t\t\tgenLength,\n\t\t\tgeneratedLabels: gen,\n\t\t\tdomain,\n\t\t\trange,\n\t\t\tlabelDelimiter\n\t\t}));\n\t\treturn customLabels;\n\t}\n\treturn gen;\n};\nvar d3_linearLegend = function d3_linearLegend$1(scale, cells, labelFormat) {\n\tvar data = [];\n\tif (cells.length > 1) data = cells;\n\telse {\n\t\tvar domain = scale.domain(), increment = (domain[domain.length - 1] - domain[0]) / (cells - 1);\n\t\tvar i = 0;\n\t\tfor (; i < cells; i++) data.push(domain[0] + i * increment);\n\t}\n\tvar labels = data.map(labelFormat);\n\treturn {\n\t\tdata,\n\t\tlabels,\n\t\tfeature: function feature(d) {\n\t\t\treturn scale(d);\n\t\t}\n\t};\n};\nvar d3_quantLegend = function d3_quantLegend$1(scale, labelFormat, labelDelimiter) {\n\tvar labels = scale.range().map(function(d) {\n\t\tvar invert = scale.invertExtent(d);\n\t\treturn labelFormat(invert[0]) + \" \" + labelDelimiter + \" \" + labelFormat(invert[1]);\n\t});\n\treturn {\n\t\tdata: scale.range(),\n\t\tlabels,\n\t\tfeature: d3_identity\n\t};\n};\nvar d3_ordinalLegend = function d3_ordinalLegend$1(scale) {\n\treturn {\n\t\tdata: scale.domain(),\n\t\tlabels: scale.domain(),\n\t\tfeature: function feature(d) {\n\t\t\treturn scale(d);\n\t\t}\n\t};\n};\nvar d3_cellOver = function d3_cellOver$1(cellDispatcher, d, obj) {\n\tcellDispatcher.call(\"cellover\", obj, d);\n};\nvar d3_cellOut = function d3_cellOut$1(cellDispatcher, d, obj) {\n\tcellDispatcher.call(\"cellout\", obj, d);\n};\nvar d3_cellClick = function d3_cellClick$1(cellDispatcher, d, obj) {\n\tcellDispatcher.call(\"cellclick\", obj, d);\n};\nvar helper = {\n\td3_drawShapes: function d3_drawShapes(shape, shapes, shapeHeight, shapeWidth, shapeRadius, path$1) {\n\t\tif (shape === \"rect\") shapes.attr(\"height\", shapeHeight).attr(\"width\", shapeWidth);\n\t\telse if (shape === \"circle\") shapes.attr(\"r\", shapeRadius);\n\t\telse if (shape === \"line\") shapes.attr(\"x1\", 0).attr(\"x2\", shapeWidth).attr(\"y1\", 0).attr(\"y2\", 0);\n\t\telse if (shape === \"path\") shapes.attr(\"d\", path$1);\n\t},\n\td3_addText: function d3_addText(svg, enter, labels, classPrefix, labelWidth) {\n\t\tenter.append(\"text\").attr(\"class\", classPrefix + \"label\");\n\t\tvar text = svg.selectAll(\"g.\" + classPrefix + \"cell text.\" + classPrefix + \"label\").data(labels).text(d3_identity);\n\t\tif (labelWidth) svg.selectAll(\"g.\" + classPrefix + \"cell text.\" + classPrefix + \"label\").call(d3_textWrapping, labelWidth);\n\t\treturn text;\n\t},\n\td3_calcType: function d3_calcType(scale, ascending, cells, labels, labelFormat, labelDelimiter) {\n\t\tvar type = scale.invertExtent ? d3_quantLegend(scale, labelFormat, labelDelimiter) : scale.ticks ? d3_linearLegend(scale, cells, labelFormat) : d3_ordinalLegend(scale);\n\t\tvar range = scale.range && scale.range() || scale.domain();\n\t\ttype.labels = d3_mergeLabels(type.labels, labels, scale.domain(), range, labelDelimiter);\n\t\tif (ascending) {\n\t\t\ttype.labels = d3_reverse(type.labels);\n\t\t\ttype.data = d3_reverse(type.data);\n\t\t}\n\t\treturn type;\n\t},\n\td3_filterCells: function d3_filterCells(type, cellFilter) {\n\t\tvar filterCells = type.data.map(function(d, i) {\n\t\t\treturn {\n\t\t\t\tdata: d,\n\t\t\t\tlabel: type.labels[i]\n\t\t\t};\n\t\t}).filter(cellFilter);\n\t\tvar dataValues = filterCells.map(function(d) {\n\t\t\treturn d.data;\n\t\t});\n\t\tvar labelValues = filterCells.map(function(d) {\n\t\t\treturn d.label;\n\t\t});\n\t\ttype.data = type.data.filter(function(d) {\n\t\t\treturn dataValues.indexOf(d) !== -1;\n\t\t});\n\t\ttype.labels = type.labels.filter(function(d) {\n\t\t\treturn labelValues.indexOf(d) !== -1;\n\t\t});\n\t\treturn type;\n\t},\n\td3_placement: function d3_placement(orient, cell, cellTrans, text, textTrans, labelAlign) {\n\t\tcell.attr(\"transform\", cellTrans);\n\t\ttext.attr(\"transform\", textTrans);\n\t\tif (orient === \"horizontal\") text.style(\"text-anchor\", labelAlign);\n\t},\n\td3_addEvents: function d3_addEvents(cells, dispatcher) {\n\t\tcells.on(\"mouseover.legend\", function(d) {\n\t\t\td3_cellOver(dispatcher, d, this);\n\t\t}).on(\"mouseout.legend\", function(d) {\n\t\t\td3_cellOut(dispatcher, d, this);\n\t\t}).on(\"click.legend\", function(d) {\n\t\t\td3_cellClick(dispatcher, d, this);\n\t\t});\n\t},\n\td3_title: function d3_title(svg, title, classPrefix, titleWidth) {\n\t\tif (title !== \"\") {\n\t\t\tsvg.selectAll(\"text.\" + classPrefix + \"legendTitle\").data([title]).enter().append(\"text\").attr(\"class\", classPrefix + \"legendTitle\");\n\t\t\tsvg.selectAll(\"text.\" + classPrefix + \"legendTitle\").text(title);\n\t\t\tif (titleWidth) svg.selectAll(\"text.\" + classPrefix + \"legendTitle\").call(d3_textWrapping, titleWidth);\n\t\t\tvar cellsSvg = svg.select(\".\" + classPrefix + \"legendCells\");\n\t\t\tvar yOffset = svg.select(\".\" + classPrefix + \"legendTitle\").nodes().map(function(d) {\n\t\t\t\treturn d.getBBox().height;\n\t\t\t})[0], xOffset = -cellsSvg.nodes().map(function(d) {\n\t\t\t\treturn d.getBBox().x;\n\t\t\t})[0];\n\t\t\tcellsSvg.attr(\"transform\", \"translate(\" + xOffset + \",\" + yOffset + \")\");\n\t\t}\n\t},\n\td3_defaultLocale: {\n\t\tformat,\n\t\tformatPrefix\n\t},\n\td3_defaultFormatSpecifier: \".01f\",\n\td3_defaultDelimiter: \"to\"\n};\nfunction color() {\n\tvar scale = scaleLinear(), shape = \"rect\", shapeWidth = 15, shapeHeight = 15, shapeRadius = 10, shapePadding = 2, cells = [5], cellFilter = void 0, labels = [], classPrefix = \"\", useClass = false, title = \"\", locale = helper.d3_defaultLocale, specifier = helper.d3_defaultFormatSpecifier, labelOffset = 10, labelAlign = \"middle\", labelDelimiter = helper.d3_defaultDelimiter, labelWrap = void 0, orient = \"vertical\", ascending = false, path$1 = void 0, titleWidth = void 0, legendDispatcher = dispatch(\"cellover\", \"cellout\", \"cellclick\");\n\tfunction legend(svg) {\n\t\tvar type = helper.d3_calcType(scale, ascending, cells, labels, locale.format(specifier), labelDelimiter);\n\t\tsvg.selectAll(\"g\").data([scale]).enter().append(\"g\").attr(\"class\", classPrefix + \"legendCells\");\n\t\tif (cellFilter) helper.d3_filterCells(type, cellFilter);\n\t\tvar cell = svg.select(\".\" + classPrefix + \"legendCells\").selectAll(\".\" + classPrefix + \"cell\").data(type.data);\n\t\tvar cellEnter = cell.enter().append(\"g\").attr(\"class\", classPrefix + \"cell\");\n\t\tcellEnter.append(shape).attr(\"class\", classPrefix + \"swatch\");\n\t\tvar shapes = svg.selectAll(\"g.\" + classPrefix + \"cell \" + shape + \".\" + classPrefix + \"swatch\").data(type.data);\n\t\thelper.d3_addEvents(cellEnter, legendDispatcher);\n\t\tcell.exit().transition().style(\"opacity\", 0).remove();\n\t\tshapes.exit().transition().style(\"opacity\", 0).remove();\n\t\tshapes = shapes.merge(shapes);\n\t\thelper.d3_drawShapes(shape, shapes, shapeHeight, shapeWidth, shapeRadius, path$1);\n\t\tvar text = helper.d3_addText(svg, cellEnter, type.labels, classPrefix, labelWrap);\n\t\tcell = cellEnter.merge(cell);\n\t\tvar textSize = text.nodes().map(function(d) {\n\t\t\treturn d.getBBox();\n\t\t}), shapeSize = shapes.nodes().map(function(d) {\n\t\t\treturn d.getBBox();\n\t\t});\n\t\tif (!useClass) if (shape == \"line\") shapes.style(\"stroke\", type.feature);\n\t\telse shapes.style(\"fill\", type.feature);\n\t\telse shapes.attr(\"class\", function(d) {\n\t\t\treturn classPrefix + \"swatch \" + type.feature(d);\n\t\t});\n\t\tvar cellTrans = void 0, textTrans = void 0, textAlign = labelAlign == \"start\" ? 0 : labelAlign == \"middle\" ? .5 : 1;\n\t\tif (orient === \"vertical\") (function() {\n\t\t\tvar cellSize = textSize.map(function(d, i) {\n\t\t\t\treturn Math.max(d.height, shapeSize[i].height);\n\t\t\t});\n\t\t\tcellTrans = function cellTrans$1(d, i) {\n\t\t\t\treturn \"translate(0, \" + (sum(cellSize.slice(0, i)) + i * shapePadding) + \")\";\n\t\t\t};\n\t\t\ttextTrans = function textTrans$1(d, i) {\n\t\t\t\treturn \"translate( \" + (shapeSize[i].width + shapeSize[i].x + labelOffset) + \", \" + (shapeSize[i].y + shapeSize[i].height / 2 + 5) + \")\";\n\t\t\t};\n\t\t})();\n\t\telse if (orient === \"horizontal\") {\n\t\t\tcellTrans = function cellTrans$1(d, i) {\n\t\t\t\treturn \"translate(\" + i * (shapeSize[i].width + shapePadding) + \",0)\";\n\t\t\t};\n\t\t\ttextTrans = function textTrans$1(d, i) {\n\t\t\t\treturn \"translate(\" + (shapeSize[i].width * textAlign + shapeSize[i].x) + \",\\n \" + (shapeSize[i].height + shapeSize[i].y + labelOffset + 8) + \")\";\n\t\t\t};\n\t\t}\n\t\thelper.d3_placement(orient, cell, cellTrans, text, textTrans, labelAlign);\n\t\thelper.d3_title(svg, title, classPrefix, titleWidth);\n\t\tcell.transition().style(\"opacity\", 1);\n\t}\n\tlegend.scale = function(_) {\n\t\tif (!arguments.length) return scale;\n\t\tscale = _;\n\t\treturn legend;\n\t};\n\tlegend.cells = function(_) {\n\t\tif (!arguments.length) return cells;\n\t\tif (_.length > 1 || _ >= 2) cells = _;\n\t\treturn legend;\n\t};\n\tlegend.cellFilter = function(_) {\n\t\tif (!arguments.length) return cellFilter;\n\t\tcellFilter = _;\n\t\treturn legend;\n\t};\n\tlegend.shape = function(_, d) {\n\t\tif (!arguments.length) return shape;\n\t\tif (_ == \"rect\" || _ == \"circle\" || _ == \"line\" || _ == \"path\" && typeof d === \"string\") {\n\t\t\tshape = _;\n\t\t\tpath$1 = d;\n\t\t}\n\t\treturn legend;\n\t};\n\tlegend.shapeWidth = function(_) {\n\t\tif (!arguments.length) return shapeWidth;\n\t\tshapeWidth = +_;\n\t\treturn legend;\n\t};\n\tlegend.shapeHeight = function(_) {\n\t\tif (!arguments.length) return shapeHeight;\n\t\tshapeHeight = +_;\n\t\treturn legend;\n\t};\n\tlegend.shapeRadius = function(_) {\n\t\tif (!arguments.length) return shapeRadius;\n\t\tshapeRadius = +_;\n\t\treturn legend;\n\t};\n\tlegend.shapePadding = function(_) {\n\t\tif (!arguments.length) return shapePadding;\n\t\tshapePadding = +_;\n\t\treturn legend;\n\t};\n\tlegend.labels = function(_) {\n\t\tif (!arguments.length) return labels;\n\t\tlabels = _;\n\t\treturn legend;\n\t};\n\tlegend.labelAlign = function(_) {\n\t\tif (!arguments.length) return labelAlign;\n\t\tif (_ == \"start\" || _ == \"end\" || _ == \"middle\") labelAlign = _;\n\t\treturn legend;\n\t};\n\tlegend.locale = function(_) {\n\t\tif (!arguments.length) return locale;\n\t\tlocale = formatLocale(_);\n\t\treturn legend;\n\t};\n\tlegend.labelFormat = function(_) {\n\t\tif (!arguments.length) return legend.locale().format(specifier);\n\t\tspecifier = formatSpecifier(_);\n\t\treturn legend;\n\t};\n\tlegend.labelOffset = function(_) {\n\t\tif (!arguments.length) return labelOffset;\n\t\tlabelOffset = +_;\n\t\treturn legend;\n\t};\n\tlegend.labelDelimiter = function(_) {\n\t\tif (!arguments.length) return labelDelimiter;\n\t\tlabelDelimiter = _;\n\t\treturn legend;\n\t};\n\tlegend.labelWrap = function(_) {\n\t\tif (!arguments.length) return labelWrap;\n\t\tlabelWrap = _;\n\t\treturn legend;\n\t};\n\tlegend.useClass = function(_) {\n\t\tif (!arguments.length) return useClass;\n\t\tif (_ === true || _ === false) useClass = _;\n\t\treturn legend;\n\t};\n\tlegend.orient = function(_) {\n\t\tif (!arguments.length) return orient;\n\t\t_ = _.toLowerCase();\n\t\tif (_ == \"horizontal\" || _ == \"vertical\") orient = _;\n\t\treturn legend;\n\t};\n\tlegend.ascending = function(_) {\n\t\tif (!arguments.length) return ascending;\n\t\tascending = !!_;\n\t\treturn legend;\n\t};\n\tlegend.classPrefix = function(_) {\n\t\tif (!arguments.length) return classPrefix;\n\t\tclassPrefix = _;\n\t\treturn legend;\n\t};\n\tlegend.title = function(_) {\n\t\tif (!arguments.length) return title;\n\t\ttitle = _;\n\t\treturn legend;\n\t};\n\tlegend.titleWidth = function(_) {\n\t\tif (!arguments.length) return titleWidth;\n\t\ttitleWidth = _;\n\t\treturn legend;\n\t};\n\tlegend.textWrap = function(_) {\n\t\tif (!arguments.length) return textWrap;\n\t\ttextWrap = _;\n\t\treturn legend;\n\t};\n\tlegend.on = function() {\n\t\tvar value = legendDispatcher.on.apply(legendDispatcher, arguments);\n\t\treturn value === legendDispatcher ? legend : value;\n\t};\n\treturn legend;\n}\n\n//#endregion\n//#region src/Legend.ts\nvar Legend = class extends SVGWidget {\n\t_owner;\n\t_targetWidget;\n\t_targetWidgetMonitor;\n\t_legendOrdinal;\n\t_disabled = [];\n\t_symbolTypeMap = {\n\t\t\"circle\": circle_default,\n\t\t\"cross\": cross_default,\n\t\t\"diamond\": diamond_default,\n\t\t\"square\": square_default,\n\t\t\"star\": star_default,\n\t\t\"triangle\": triangle_default,\n\t\t\"wye\": wye_default\n\t};\n\tconstructor(owner) {\n\t\tsuper();\n\t\tthis._owner = owner;\n\t\tthis._drawStartPos = \"origin\";\n\t\tconst context = this;\n\t\tthis._legendOrdinal = color().shape(\"path\", symbol_default().type(circle_default).size(150)()).shapePadding(10).shapeRadius(10).on(\"cellclick\", function(d) {\n\t\t\tcontext.onClick(d, this);\n\t\t}).on(\"cellover\", (d) => {\n\t\t\tcontext.onOver(d, this);\n\t\t}).on(\"cellout\", (d) => {\n\t\t\tcontext.onOut(d, this);\n\t\t});\n\t}\n\tisDisabled(d) {\n\t\tif (typeof d === \"undefined\") return false;\n\t\telse if (typeof d === \"string\") return d.indexOf(\"__\") === 0 || this._disabled.indexOf(d) >= 0;\n\t\telse if (d instanceof Database.Field) return d.id().indexOf(\"__\") === 0 || this._disabled.indexOf(d.id()) >= 0;\n\t\treturn this._disabled.indexOf(d) >= 0;\n\t}\n\tfilteredFields() {\n\t\tswitch (this.dataFamily()) {\n\t\t\tcase \"2D\": return this.fields();\n\t\t\tcase \"ND\": return this.fields().filter((d) => !this.isDisabled(d));\n\t\t}\n\t\treturn this.fields();\n\t}\n\tfilteredColumns() {\n\t\tswitch (this.dataFamily()) {\n\t\t\tcase \"2D\": return this.columns();\n\t\t\tcase \"ND\": return this.columns().filter((d) => !this.isDisabled(d));\n\t\t}\n\t\treturn this.columns();\n\t}\n\tfilteredData() {\n\t\tswitch (this.dataFamily()) {\n\t\t\tcase \"2D\": return this.data().filter((row) => !this.isDisabled(row[0]));\n\t\t\tcase \"ND\":\n\t\t\t\tconst disabledCols = {};\n\t\t\t\tlet anyDisabled = false;\n\t\t\t\tthis.columns().forEach((col, idx) => {\n\t\t\t\t\tconst disabled = this.isDisabled(col);\n\t\t\t\t\tdisabledCols[idx] = disabled;\n\t\t\t\t\tif (disabled) anyDisabled = true;\n\t\t\t\t});\n\t\t\t\treturn !anyDisabled ? this.data() : this.data().map((row) => {\n\t\t\t\t\treturn row.filter((cell, idx) => !disabledCols[idx]);\n\t\t\t\t});\n\t\t}\n\t\treturn this.data();\n\t}\n\tisRainbow() {\n\t\tconst widget = this.getWidget();\n\t\treturn widget && widget._palette && widget._palette.type() === \"rainbow\";\n\t}\n\ttargetWidget(_) {\n\t\tif (!arguments.length) return this._targetWidget;\n\t\tthis._targetWidget = _;\n\t\tif (this._targetWidgetMonitor) {\n\t\t\tthis._targetWidgetMonitor.remove();\n\t\t\tdelete this._targetWidgetMonitor;\n\t\t}\n\t\tif (this._targetWidget) {\n\t\t\tconst context = this;\n\t\t\tthis._targetWidgetMonitor = this._targetWidget.monitor(function(key, newProp, oldProp, source) {\n\t\t\t\tswitch (key) {\n\t\t\t\t\tcase \"chart\":\n\t\t\t\t\tcase \"columns\":\n\t\t\t\t\tcase \"data\":\n\t\t\t\t\tcase \"paletteID\":\n\t\t\t\t\t\tcontext.lazyRender();\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn this;\n\t}\n\tgetWidget() {\n\t\tif (this._targetWidget) switch (this._targetWidget.classID()) {\n\t\t\tcase \"composite_MultiChart\": return this._targetWidget.chart();\n\t\t}\n\t\treturn this._targetWidget;\n\t}\n\tgetPalette() {\n\t\tconst widget = this.getWidget();\n\t\tif (widget && widget._palette) switch (widget._palette.type()) {\n\t\t\tcase \"ordinal\": return Palette.ordinal(widget._palette.id());\n\t\t\tcase \"rainbow\": return Palette.rainbow(widget._palette.id());\n\t\t}\n\t\treturn Palette.ordinal(\"default\");\n\t}\n\tgetPaletteType() {\n\t\treturn this.getPalette().type();\n\t}\n\tfillColorFunc() {\n\t\tconst widget = this.getWidget();\n\t\tif (widget && widget.fillColor) {\n\t\t\tif (widget._palette && widget.paletteID && widget._palette.name !== widget.paletteID()) widget._palette = widget._palette.switch(widget.paletteID());\n\t\t\treturn (row, col, sel) => {\n\t\t\t\treturn widget.fillColor(row, col, sel);\n\t\t\t};\n\t\t}\n\t\tconst palette = Palette.ordinal(widget && widget.paletteID ? widget.paletteID() || \"default\" : \"default\");\n\t\treturn (row, col, sel) => {\n\t\t\treturn palette(col);\n\t\t};\n\t}\n\tfillColor(row, col, sel) {\n\t\treturn this.fillColorFunc()(row, col, sel);\n\t}\n\t_g;\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tthis._g = element.append(\"g\").attr(\"class\", \"legendOrdinal\");\n\t}\n\tcalcMetaData() {\n\t\tlet dataArr = [];\n\t\tlet total = 0;\n\t\tlet maxLabelWidth = 0;\n\t\tconst colLength = this.columns().length;\n\t\tif (this._targetWidget) {\n\t\t\tconst columns = this.columns();\n\t\t\tswitch (this.getPaletteType()) {\n\t\t\t\tcase \"ordinal\":\n\t\t\t\t\tconst fillColor = this.fillColorFunc();\n\t\t\t\t\tlet val = 0;\n\t\t\t\t\tswitch (this.dataFamily()) {\n\t\t\t\t\t\tcase \"2D\":\n\t\t\t\t\t\t\tdataArr = this.data().map(function(n, i) {\n\t\t\t\t\t\t\t\tval = this.data()[i].slice(1, colLength).reduce((acc, n$1) => acc + n$1, 0);\n\t\t\t\t\t\t\t\tconst disabled = this.isDisabled(n[0]);\n\t\t\t\t\t\t\t\tif (!disabled) total += val;\n\t\t\t\t\t\t\t\tconst label = n[0] + (!disabled && this.showSeriesTotal() ? ` (${val})` : \"\");\n\t\t\t\t\t\t\t\tconst textSize = this.textSize(label);\n\t\t\t\t\t\t\t\tif (maxLabelWidth < textSize.width) maxLabelWidth = textSize.width;\n\t\t\t\t\t\t\t\treturn [\n\t\t\t\t\t\t\t\t\tfillColor(n, n[0], false),\n\t\t\t\t\t\t\t\t\tn[0],\n\t\t\t\t\t\t\t\t\tlabel\n\t\t\t\t\t\t\t\t];\n\t\t\t\t\t\t\t}, this);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"ND\":\n\t\t\t\t\t\t\tdataArr = this.columns().filter((col) => col.indexOf(\"__\") !== 0).filter(function(n, i) {\n\t\t\t\t\t\t\t\treturn i > 0;\n\t\t\t\t\t\t\t}).map(function(n, i) {\n\t\t\t\t\t\t\t\tval = this.data().reduce((acc, n$1) => acc + n$1[i + 1], 0);\n\t\t\t\t\t\t\t\tconst disabled = this.isDisabled(columns[i + 1]);\n\t\t\t\t\t\t\t\tconst label = n + (!disabled && this.showSeriesTotal() ? ` (${val})` : \"\");\n\t\t\t\t\t\t\t\tif (!disabled) total += val;\n\t\t\t\t\t\t\t\tconst textSize = this.textSize(label);\n\t\t\t\t\t\t\t\tif (maxLabelWidth < textSize.width) maxLabelWidth = textSize.width;\n\t\t\t\t\t\t\t\treturn [\n\t\t\t\t\t\t\t\t\tfillColor(void 0, n, false),\n\t\t\t\t\t\t\t\t\tn,\n\t\t\t\t\t\t\t\t\tlabel\n\t\t\t\t\t\t\t\t];\n\t\t\t\t\t\t\t}, this);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tdataArr = this.columns().map(function(n) {\n\t\t\t\t\t\t\t\treturn [fillColor(void 0, n, false), n];\n\t\t\t\t\t\t\t}, this);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"rainbow\":\n\t\t\t\t\tconst palette = this.getPalette();\n\t\t\t\t\tconst format$1 = format(this.rainbowFormat());\n\t\t\t\t\tconst widget = this.getWidget();\n\t\t\t\t\tconst steps = this.rainbowBins();\n\t\t\t\t\tconst weightMin = widget._dataMinWeight;\n\t\t\t\t\tconst weightMax = widget._dataMaxWeight;\n\t\t\t\t\tconst stepWeightDiff = (weightMax - weightMin) / (steps - 1);\n\t\t\t\t\tdataArr.push([palette(weightMin, weightMin, weightMax), format$1(weightMin)]);\n\t\t\t\t\tfor (let x = 1; x < steps - 1; ++x) {\n\t\t\t\t\t\tlet mid = stepWeightDiff * x;\n\t\t\t\t\t\tif (Math.floor(mid) > parseInt(dataArr[0][1])) mid = Math.floor(mid);\n\t\t\t\t\t\tdataArr.push([palette(mid, weightMin, weightMax), format$1(mid)]);\n\t\t\t\t\t}\n\t\t\t\t\tdataArr.push([palette(weightMax, weightMin, weightMax), format$1(weightMax)]);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn {\n\t\t\tdataArr,\n\t\t\ttotal,\n\t\t\tmaxLabelWidth\n\t\t};\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t\tconst { dataArr, maxLabelWidth, total } = this.calcMetaData();\n\t\tconst radius = this.shapeRadius();\n\t\tconst size = this.radiusToSymbolSize(radius);\n\t\tconst strokeWidth = 1;\n\t\tlet shapePadding = this.itemPadding();\n\t\tif (this.orientation() === \"horizontal\") shapePadding += maxLabelWidth - radius * 2;\n\t\tconst ordinal = scaleOrdinal().domain(dataArr.map((row) => row[1])).range(dataArr.map((row) => row[0]));\n\t\tthis._legendOrdinal.shape(\"path\", symbol_default().type(this._symbolTypeMap[this.symbolType()]).size(size)()).orient(this.orientation()).title(this.title()).labelWrap(this.labelMaxWidth()).labelAlign(this.labelAlign()).shapePadding(shapePadding).scale(ordinal).labels((d) => dataArr[d.i][2]);\n\t\tthis._g.call(this._legendOrdinal);\n\t\tthis.updateDisabled(element, dataArr);\n\t\tconst legendCellsBbox = this._g.select(\".legendCells\").node().getBBox();\n\t\tlet offsetX = Math.abs(legendCellsBbox.x);\n\t\tlet offsetY = Math.abs(legendCellsBbox.y) + strokeWidth;\n\t\tif (this.orientation() === \"horizontal\") {\n\t\t\tif (this.labelAlign() === \"start\") offsetX += strokeWidth;\n\t\t\telse if (this.labelAlign() === \"end\") offsetX -= strokeWidth;\n\t\t\tif (this.width() > legendCellsBbox.width) {\n\t\t\t\tconst extraWidth = this.width() - legendCellsBbox.width;\n\t\t\t\toffsetX += extraWidth / 2;\n\t\t\t}\n\t\t} else if (this.orientation() === \"vertical\") {\n\t\t\toffsetX += strokeWidth;\n\t\t\tif (this._containerSize.height > legendCellsBbox.height) {\n\t\t\t\tconst extraHeight = this.height() - legendCellsBbox.height;\n\t\t\t\toffsetY += extraHeight / 2;\n\t\t\t}\n\t\t}\n\t\tthis._g.attr(\"transform\", `translate(${offsetX}, ${offsetY})`);\n\t\tthis.pos({\n\t\t\tx: 0,\n\t\t\ty: 0\n\t\t});\n\t\tthis._legendOrdinal.labelOffset(this.itemPadding());\n\t\tconst legendTotal = this._g.selectAll(\".legendTotal\").data(dataArr.length && this.showLegendTotal() ? [total] : []);\n\t\tconst totalText = `Total: ${total}`;\n\t\tconst totalOffsetX = -offsetX;\n\t\tconst totalOffsetY = legendCellsBbox.height + this.itemPadding() + strokeWidth;\n\t\tthis.enableOverflowScroll(false);\n\t\tthis.enableOverflow(true);\n\t\tlegendTotal.enter().append(\"text\").classed(\"legendTotal\", true).merge(legendTotal).attr(\"transform\", `translate(${totalOffsetX}, ${totalOffsetY})`).text(totalText);\n\t\tlegendTotal.exit().remove();\n\t}\n\tupdateDisabled(element, dataArr) {\n\t\telement.style(\"cursor\", \"pointer\").selectAll(\"path.swatch\").filter((d, i) => i < dataArr.length).style(\"stroke\", (d, i) => dataArr[i][0]).style(\"fill\", (d, i) => this._disabled.indexOf(d) < 0 ? dataArr[i][0] : \"white\");\n\t}\n\tpostUpdate(domNode, element) {\n\t\tlet w;\n\t\tif (this._boundingBox) {\n\t\t\tw = this._boundingBox.width;\n\t\t\tthis._boundingBox.width = this._size.width;\n\t\t}\n\t\tsuper.postUpdate(domNode, element);\n\t\tif (w !== void 0) this._boundingBox.width = w;\n\t\tthis._parentRelativeDiv.style(\"overflow\", \"hidden\");\n\t}\n\texit(domNode, element) {\n\t\tsuper.exit(domNode, element);\n\t}\n\tradiusToSymbolSize(radius) {\n\t\tconst circleSize = Math.pow(radius, 2) * Math.PI;\n\t\tswitch (this.symbolType()) {\n\t\t\tcase \"star\": return circleSize * .45;\n\t\t\tcase \"triangle\": return circleSize * .65;\n\t\t\tcase \"cross\":\n\t\t\tcase \"diamond\":\n\t\t\tcase \"wye\": return circleSize * .75;\n\t\t\tcase \"circle\": return circleSize;\n\t\t\tcase \"square\": return circleSize * 1.3;\n\t\t}\n\t}\n\tonClick(d, domNode) {\n\t\tswitch (this.getPaletteType()) {\n\t\t\tcase \"ordinal\":\n\t\t\t\tswitch (this.dataFamily()) {\n\t\t\t\t\tcase \"2D\":\n\t\t\t\t\tcase \"ND\":\n\t\t\t\t\t\tconst disabledIdx = this._disabled.indexOf(d);\n\t\t\t\t\t\tif (disabledIdx < 0) this._disabled.push(d);\n\t\t\t\t\t\telse this._disabled.splice(disabledIdx, 1);\n\t\t\t\t\t\tthis._owner.refreshColumns();\n\t\t\t\t\t\tthis._owner.refreshData();\n\t\t\t\t\t\tthis._owner.render();\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t}\n\tonOver(d, domNode) {\n\t\tif (instanceOfIHighlight(this._owner)) switch (this.getPaletteType()) {\n\t\t\tcase \"ordinal\":\n\t\t\t\tswitch (this.dataFamily()) {\n\t\t\t\t\tcase \"2D\":\n\t\t\t\t\tcase \"ND\":\n\t\t\t\t\t\tif (this._disabled.indexOf(d) < 0) this._owner.highlightColumn(d);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t}\n\tonOut(d, domNode) {\n\t\tif (instanceOfIHighlight(this._owner)) switch (this.getPaletteType()) {\n\t\t\tcase \"ordinal\":\n\t\t\t\tswitch (this.dataFamily()) {\n\t\t\t\t\tcase \"2D\":\n\t\t\t\t\tcase \"ND\":\n\t\t\t\t\t\tthis._owner.highlightColumn();\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t}\n\tonDblClick(rowData, rowIdx) {}\n\tonMouseOver(rowData, rowIdx) {}\n\t_containerSize;\n\tresize(_size) {\n\t\tlet retVal;\n\t\tif (this.fitToContent()) {\n\t\t\tthis._containerSize = _size;\n\t\t\tconst bbox = this.getBBox();\n\t\t\tif (_size.width > bbox.width) bbox.width = _size.width;\n\t\t\tif (_size.height > bbox.height) bbox.height = _size.height;\n\t\t\tretVal = super.resize.apply(this, [{ ...bbox }]);\n\t\t} else retVal = super.resize.apply(this, arguments);\n\t\treturn retVal;\n\t}\n};\nLegend.prototype._class += \" layout_Legend\";\nLegend.prototype.publish(\"title\", \"\", \"string\", \"Title\");\nLegend.prototype.publish(\"symbolType\", \"circle\", \"set\", \"Shape of each legend item\", [\n\t\"circle\",\n\t\"cross\",\n\t\"diamond\",\n\t\"square\",\n\t\"star\",\n\t\"triangle\",\n\t\"wye\"\n]);\nLegend.prototype.publish(\"labelMaxWidth\", null, \"number\", \"Max Label Width (pixels)\", null, { optional: true });\nLegend.prototype.publish(\"orientation\", \"vertical\", \"set\", \"Orientation of Legend rows\", [\"vertical\", \"horizontal\"], { tags: [\"Private\"] });\nLegend.prototype.publish(\"dataFamily\", \"ND\", \"set\", \"Type of data\", [\n\t\"1D\",\n\t\"2D\",\n\t\"ND\",\n\t\"map\",\n\t\"graph\",\n\t\"any\"\n], { tags: [\"Private\"] });\nLegend.prototype.publish(\"rainbowFormat\", \",\", \"string\", \"Rainbow number formatting\", null, {\n\ttags: [\"Private\"],\n\toptional: true,\n\tdisable: (w) => !w.isRainbow()\n});\nLegend.prototype.publish(\"rainbowBins\", 8, \"number\", \"Number of rainbow bins\", null, {\n\ttags: [\"Private\"],\n\tdisable: (w) => !w.isRainbow()\n});\nLegend.prototype.publish(\"showSeriesTotal\", false, \"boolean\", \"Show value next to series\");\nLegend.prototype.publish(\"showLegendTotal\", false, \"boolean\", \"Show a total of the series values under the legend\", null);\nLegend.prototype.publish(\"itemPadding\", 8, \"number\", \"Padding between legend items (pixels)\");\nLegend.prototype.publish(\"shapeRadius\", 7, \"number\", \"Radius of legend shape (pixels)\");\nLegend.prototype.publish(\"fitToContent\", true, \"boolean\", \"If true, resize will simply reapply the bounding box dimensions\");\nLegend.prototype.publish(\"labelAlign\", \"start\", \"set\", \"Horizontal alignment of legend item label (for horizontal orientation only)\", [\n\t\"start\",\n\t\"middle\",\n\t\"end\"\n], {\n\toptional: true,\n\tdisable: (w) => w.orientation() === \"vertical\"\n});\n\n//#endregion\n//#region src/Modal.ts\nvar Modal = class extends HTMLWidget {\n\t_widget;\n\t_relativeTarget;\n\t_fade;\n\t_modal;\n\t_modalHeader;\n\t_modalBody;\n\t_modalHeaderAnnotations;\n\t_modalHeaderCloseButton;\n\t_close;\n\tconstructor() {\n\t\tsuper();\n\t\tthis._tag = \"div\";\n\t}\n\tcloseModal() {\n\t\tthis.visible(false);\n\t}\n\tgetRelativeTarget() {\n\t\tlet relativeTarget;\n\t\tif (this.relativeTargetId()) {\n\t\t\trelativeTarget = document.getElementById(this.relativeTargetId());\n\t\t\tif (relativeTarget) return relativeTarget;\n\t\t}\n\t\tif (!relativeTarget) {\n\t\t\trelativeTarget = this.locateAncestor(\"layout_Grid\");\n\t\t\tif (relativeTarget && relativeTarget.element) return relativeTarget.element().node();\n\t\t}\n\t\treturn document.body;\n\t}\n\tsetModalSize() {\n\t\tif (this.fixedHeight() !== null && this.fixedWidth() !== null) this._modal.style(\"height\", this.fixedHeight()).style(\"width\", this.fixedWidth()).style(\"min-height\", null).style(\"min-width\", null).style(\"max-height\", null).style(\"max-width\", null);\n\t\telse if (this.minHeight() || this.minWidth()) this._modal.style(\"min-height\", this.minHeight()).style(\"min-width\", this.minWidth()).style(\"max-height\", this.maxHeight()).style(\"max-width\", this.maxWidth());\n\t\tconst modalRect = this._modal.node().getBoundingClientRect();\n\t\tconst headerRect = this._modalHeader.node().getBoundingClientRect();\n\t\tthis._modalBody.style(\"height\", modalRect.height - headerRect.height + \"px\").style(\"width\", modalRect.width);\n\t\treturn modalRect;\n\t}\n\tsetFadePosition(rect) {\n\t\tthis._fade.style(\"top\", rect.top + \"px\").style(\"left\", rect.left + \"px\").style(\"width\", rect.width + \"px\").style(\"height\", rect.height + \"px\");\n\t}\n\tsetModalPosition(rect) {\n\t\tconst modalRect = this.setModalSize();\n\t\tif (this.fixedTop() !== null && this.fixedLeft() !== null) this._modal.style(\"top\", `calc(${this.fixedTop()} + ${rect.top}px)`).style(\"left\", `calc(${this.fixedLeft()} + ${rect.left}px)`);\n\t\telse if (this.fixedHeight() !== null && this.fixedWidth() !== null) this._modal.style(\"top\", rect.top + rect.height / 2 - modalRect.height / 2 + \"px\").style(\"left\", rect.left + rect.width / 2 - modalRect.width / 2 + \"px\");\n\t\telse if (this.minHeight() || this.minWidth()) {\n\t\t\tconst contentRect = this._modal.node().getBoundingClientRect();\n\t\t\tthis._modal.style(\"top\", rect.top + rect.height / 2 - contentRect.height / 2 + \"px\").style(\"left\", rect.left + rect.width / 2 - contentRect.width / 2 + \"px\");\n\t\t}\n\t}\n\tresize(size) {\n\t\tsuper.resize();\n\t\tif (this._modal) this.setModalSize();\n\t\treturn this;\n\t}\n\tresizeBodySync(width, height) {\n\t\tconst headerRect = this._modalHeader.node().getBoundingClientRect();\n\t\tthis._modal.style(\"width\", width + \"px\").style(\"height\", height + headerRect.height + \"px\").style(\"min-width\", width + \"px\").style(\"min-height\", height + headerRect.height + \"px\");\n\t\tthis._modalHeader.style(\"width\", width + \"px\");\n\t\tthis._modalBody.style(\"width\", width + \"px\").style(\"height\", height + \"px\");\n\t\treturn this.minWidth(width + \"px\").minHeight(height + headerRect.height + \"px\").resize({\n\t\t\theight: height + headerRect.height,\n\t\t\twidth\n\t\t});\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tthis._fade = element.append(\"div\").classed(\"layout_Modal-fade\", true).classed(\"layout_Modal-fadeClickable\", this.enableClickFadeToClose()).classed(\"layout_Modal-fade-hidden\", !this.showFade());\n\t\tconst header_h = this.titleFontSize() * 2;\n\t\tthis._modal = element.append(\"div\").classed(\"layout_Modal-content\", true);\n\t\tthis._modalHeader = this._modal.append(\"div\").classed(\"layout_Modal-header\", true).style(\"color\", this.titleFontColor()).style(\"font-size\", this.titleFontSize() + \"px\").style(\"height\", header_h + \"px\");\n\t\tthis._modalBody = this._modal.append(\"div\").classed(\"layout_Modal-body\", true).style(\"height\", `calc( 100% - ${header_h}px )`).style(\"overflow-x\", this.overflowX()).style(\"overflow-y\", this.overflowY());\n\t\tthis._modalHeader.append(\"div\").classed(\"layout_Modal-title\", true).style(\"line-height\", this.titleFontSize() + \"px\").style(\"top\", this.titleFontSize() / 2 + \"px\").style(\"left\", this.titleFontSize() / 2 + \"px\").text(this.formattedTitle());\n\t\tthis._modalHeaderAnnotations = this._modalHeader.append(\"div\").classed(\"layout_Modal-annotations\", true);\n\t\tthis._modalHeaderCloseButton = this._modalHeaderAnnotations.append(\"div\").classed(\"layout_Modal-closeButton\", true).html(\"<i class=\\\"fa fa-close\\\"></i>\");\n\t\tthis._modalHeaderAnnotations.style(\"line-height\", this.titleFontSize() + \"px\").style(\"right\", this.titleFontSize() / 2 + \"px\").style(\"top\", this.titleFontSize() / 2 + \"px\");\n\t\tthis._modalHeaderCloseButton.on(\"click\", () => {\n\t\t\tthis.closeModal();\n\t\t});\n\t\tthis._fade.on(\"click\", (n) => {\n\t\t\tif (this.enableClickFadeToClose()) this.closeModal();\n\t\t});\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t\telement.style(\"display\", this.show() ? null : \"none\");\n\t\tthis._fade.classed(\"layout_Modal-fade-hidden\", !this.showFade());\n\t\tthis._relativeTarget = this.getRelativeTarget();\n\t\tthis.setModalSize();\n\t\tconst rect = this._relativeTarget.getBoundingClientRect();\n\t\tthis.setFadePosition(rect);\n\t\tthis.setModalPosition(rect);\n\t\tif (this.show()) {\n\t\t\tif (!this._widget.target()) this._widget.target(this._modalBody.node());\n\t\t\tthis._widget.resize().render();\n\t\t} else this._widget.target(null).render();\n\t}\n\texit(domNode, element) {\n\t\tif (this._widget) this._widget.target(null);\n\t\tsuper.exit(domNode, element);\n\t}\n\tformattedTitle() {\n\t\tconst title = this.title_exists() ? this.title().trim() : \"\";\n\t\tif (title.length > 0 && title.slice(0, 1) === \"(\" && title.slice(-1) === \")\") return title.slice(1, -1);\n\t\treturn this.title();\n\t}\n};\nModal.prototype._class += \" layout_Modal\";\nModal.prototype.publish(\"title\", null, \"string\", \"title\");\nModal.prototype.publish(\"widget\", null, \"widget\", \"widget\");\nModal.prototype.publish(\"titleFontSize\", 18, \"number\", \"titleFontSize (in pixels)\");\nModal.prototype.publish(\"titleFontColor\", \"#ffffff\", \"html-color\", \"titleFontColor\");\nModal.prototype.publish(\"relativeTargetId\", null, \"string\", \"relativeTargetId\");\nModal.prototype.publish(\"show\", true, \"boolean\", \"show\");\nModal.prototype.publish(\"showFade\", true, \"boolean\", \"showFade\");\nModal.prototype.publish(\"enableClickFadeToClose\", true, \"boolean\", \"enableClickFadeToClose\");\nModal.prototype.publish(\"minWidth\", \"400px\", \"string\", \"minWidth\");\nModal.prototype.publish(\"minHeight\", \"400px\", \"string\", \"minHeight\");\nModal.prototype.publish(\"maxWidth\", \"800px\", \"string\", \"maxWidth\");\nModal.prototype.publish(\"maxHeight\", \"800px\", \"string\", \"maxHeight\");\nModal.prototype.publish(\"fixedWidth\", null, \"string\", \"fixedWidth\");\nModal.prototype.publish(\"fixedHeight\", null, \"string\", \"fixedHeight\");\nModal.prototype.publish(\"fixedTop\", null, \"string\", \"fixedTop\");\nModal.prototype.publish(\"fixedLeft\", null, \"string\", \"fixedLeft\");\nModal.prototype.publish(\"overflowX\", \"hidden\", \"string\", \"overflowX\");\nModal.prototype.publish(\"overflowY\", \"scroll\", \"string\", \"overflowY\");\n\n//#endregion\n//#region src/ChartPanel.ts\nvar ChartPanel = class extends Border2 {\n\t_legend = new Legend(this).enableOverflow(true);\n\t_progressBar = new ProgressBar();\n\t_autoScale = false;\n\t_resolutions = {\n\t\ttiny: {\n\t\t\twidth: 100,\n\t\t\theight: 100\n\t\t},\n\t\tsmall: {\n\t\t\twidth: 300,\n\t\t\theight: 300\n\t\t}\n\t};\n\t_modal = new Modal();\n\t_highlight;\n\t_scale;\n\t_orig_size;\n\t_toggleInfo = new ToggleButton().faChar(\"fa-info-circle\").tooltip(\".Description\").selected(false).on(\"enabled\", () => {\n\t\treturn this.description() !== \"\";\n\t}).on(\"click\", () => {\n\t\tif (this._toggleInfo.selected()) {\n\t\t\tthis._modal.title(this.title()).widget(new Text().text(this.description())).show(true).render();\n\t\t\tconst origCloseFunc = this._modal._close;\n\t\t\tthis._modal._close = () => {\n\t\t\t\tthis._toggleInfo.selected(false).render();\n\t\t\t\tthis._modal._close = origCloseFunc;\n\t\t\t};\n\t\t}\n\t}).on(\"mouseMove\", () => {}).on(\"mouseOut\", () => {});\n\t_toggleData = new ToggleButton().faChar(\"fa-table\").tooltip(\"Data\").on(\"click\", () => {\n\t\tthis.dataVisible(this._toggleData.selected());\n\t\tthis.render();\n\t});\n\t_buttonDownload = new Button().faChar(\"fa-download\").tooltip(\"Download\").on(\"click\", () => {\n\t\tthis.downloadCSV();\n\t});\n\t_buttonDownloadImage = new Button().faChar(\"fa-image\").tooltip(\"Download Image\").on(\"click\", () => {\n\t\tthis.downloadPNG();\n\t});\n\t_toggleLegend = new ToggleButton().faChar(\"fa-list-ul\").tooltip(\"Legend\").selected(false).on(\"click\", () => {\n\t\tconst selected = this._toggleLegend.selected();\n\t\tif (this.legendPosition() === \"bottom\") this.showBottom(selected);\n\t\telse if (this.legendPosition() === \"right\") this.showRight(selected);\n\t\tthis.legendVisible(selected);\n\t\tthis.render();\n\t});\n\t_spacer = new Spacer();\n\t_titleBar = new TitleBar().buttons([\n\t\tthis._toggleData,\n\t\tthis._buttonDownload,\n\t\tthis._buttonDownloadImage,\n\t\tthis._spacer,\n\t\tthis._toggleLegend\n\t]);\n\t_carousel = new Carousel();\n\t_table = new Table();\n\t_widget;\n\t_hideLegendToggleList = [\"dgrid_Table\"];\n\tconstructor() {\n\t\tsuper();\n\t\tthis._tag = \"div\";\n\t}\n\tfields(_) {\n\t\tif (!arguments.length) return super.fields();\n\t\tsuper.fields(_);\n\t\tthis._legend.fields(_);\n\t\tthis.refreshFields();\n\t\treturn this;\n\t}\n\trefreshFields() {\n\t\tthis._widget.fields(this._legend.filteredFields());\n\t\tthis._table.fields(this._legend.filteredFields());\n\t\treturn this;\n\t}\n\tcolumns(_, asDefault) {\n\t\tif (!arguments.length) return super.columns();\n\t\tsuper.columns(_, asDefault);\n\t\tthis._legend.columns(_, asDefault);\n\t\tthis.refreshColumns();\n\t\treturn this;\n\t}\n\trefreshColumns() {\n\t\tthis._widget.columns(this._legend.filteredColumns());\n\t\tthis._table.columns(this._legend.filteredColumns());\n\t\treturn this;\n\t}\n\tdata(_) {\n\t\tif (!arguments.length) return super.data();\n\t\tsuper.data(_);\n\t\tthis._legend.data(_);\n\t\tthis.refreshData();\n\t\treturn this;\n\t}\n\trefreshData() {\n\t\tthis._widget.data(this._legend.filteredData());\n\t\tthis._table.data(this._legend.filteredData());\n\t\treturn this;\n\t}\n\thighlight(_) {\n\t\tif (!arguments.length) return this._highlight;\n\t\tthis._highlight = _;\n\t\treturn this;\n\t}\n\tstartProgress() {\n\t\tthis._progressBar.start();\n\t}\n\tfinishProgress() {\n\t\tthis._progressBar.finish();\n\t}\n\tbuttons(_) {\n\t\tif (!arguments.length) return this._titleBar.buttons();\n\t\tthis._titleBar.buttons(_);\n\t\treturn this;\n\t}\n\tdownloadCSV() {\n\t\tconst namePrefix = this.downloadTitle() ? this.downloadTitle() : this.title() ? this.title() : \"data\";\n\t\tconst nameSuffix = this.downloadTimestampSuffix() ? \"_\" + Utility.timestamp() : \"\";\n\t\tUtility.downloadString(\"CSV\", this._widget.export(\"CSV\"), namePrefix + nameSuffix);\n\t\treturn this;\n\t}\n\tdownloadPNG() {\n\t\tconst widget = this.widget();\n\t\tif (widget instanceof SVGWidget) if (!this.legendVisible()) widget.downloadPNG(this.title());\n\t\telse widget.downloadPNG(this.title(), void 0, this._legend);\n\t\treturn this;\n\t}\n\thighlightColumn(column) {\n\t\tif (column) {\n\t\t\tconst cssTag = `series-${this.cssTag(column)}`;\n\t\t\tthis._centerWA.element().selectAll(\".series\").each(function() {\n\t\t\t\tconst element = select(this);\n\t\t\t\tconst highlight = element.classed(cssTag);\n\t\t\t\telement.classed(\"highlight\", highlight).classed(\"lowlight\", !highlight);\n\t\t\t});\n\t\t} else this._centerWA.element().selectAll(\".series\").classed(\"highlight\", false).classed(\"lowlight\", false);\n\t\treturn this;\n\t}\n\tgetResponsiveMode() {\n\t\tif (!this.enableAutoscaling()) return \"none\";\n\t\tif (!this._autoScale) return \"regular\";\n\t\tif (this.size().width <= this._resolutions.tiny.width || this.size().height <= this._resolutions.tiny.height) return \"tiny\";\n\t\telse if (this.size().width <= this._resolutions.small.width || this.size().height <= this._resolutions.small.height) return \"small\";\n\t\treturn \"regular\";\n\t}\n\tsetOrigSize() {\n\t\tthis._orig_size = JSON.parse(JSON.stringify(this.size()));\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tthis._modal.target(this.target()).relativeTargetId(this.id());\n\t\tthis.top(this._titleBar);\n\t\tthis.center(this._carousel);\n\t\tthis._legend.targetWidget(this._widget).orientation(\"vertical\").title(\"\").visible(false);\n\t\tthis._progressBar.enter(domNode, element);\n\t\tthis.setOrigSize();\n\t}\n\tpreUpdateTiny(element) {\n\t\telement.selectAll(\"div.body,div.title-text,div.icon-bar\").style(\"display\", \"none\");\n\t}\n\tpreUpdateSmall(element) {\n\t\tconst scale_x = this._orig_size.width / this._resolutions.small.width;\n\t\tconst scale_y = this._orig_size.height / this._resolutions.small.height;\n\t\tthis._scale = Math.min(scale_x, scale_y);\n\t\tconst x_is_smaller = this._scale === scale_x;\n\t\tthis.size({\n\t\t\twidth: x_is_smaller ? this._resolutions.small.width : this._orig_size.width * (1 / this._scale),\n\t\t\theight: !x_is_smaller ? this._resolutions.small.height : this._orig_size.height * (1 / this._scale)\n\t\t});\n\t\telement.select(\"div.title-icon\").style(\"position\", \"static\");\n\t\telement.selectAll(\"lhs\").style(\"display\", \"none\");\n\t\telement.selectAll(\"div.body,div.title-text,div.icon-bar\").style(\"display\", \"\");\n\t\telement.selectAll(\"div.data-count\").style(\"visibility\", \"hidden\");\n\t\telement.style(\"transform\", `scale(${this._scale})`);\n\t}\n\tpreUpdateRegular(element) {\n\t\telement.selectAll(\"div.body,div.title-text,div.icon-bar\").style(\"display\", \"\");\n\t\telement.selectAll(\"div.data-count\").style(\"visibility\", \"hidden\");\n\t\telement.select(\"div.title-icon\").style(\"position\", \"static\");\n\t\telement.style(\"transform\", \"translate(0px,0px) scale(1)\");\n\t}\n\t_prevdataVisible;\n\t_prevlegendVisible;\n\t_prevLegendPosition;\n\t_prevChartDataFamily;\n\t_prevChart;\n\t_prevButtons;\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t}\n\tpreUpdate(domNode, element) {\n\t\tsuper.preUpdate(domNode, element);\n\t\tif (this._prevLegendPosition !== this.legendPosition()) {\n\t\t\tif (this._legend.target() !== null) this._legend.target(null);\n\t\t\tif (this._prevLegendPosition !== void 0) this.swap(this._prevLegendPosition, this.legendPosition());\n\t\t\telse this[this.legendPosition()](this._legend);\n\t\t\tif (this.legendPosition() === \"right\") {\n\t\t\t\tthis.rightOverflowX(\"hidden\");\n\t\t\t\tthis.rightOverflowY(\"auto\");\n\t\t\t\tthis.bottomOverflowX(\"visible\");\n\t\t\t\tthis.bottomOverflowY(\"visible\");\n\t\t\t} else {\n\t\t\t\tthis.rightOverflowX(\"visible\");\n\t\t\t\tthis.rightOverflowY(\"visible\");\n\t\t\t\tthis.bottomOverflowX(\"auto\");\n\t\t\t\tthis.bottomOverflowY(\"hidden\");\n\t\t\t}\n\t\t\tthis._prevLegendPosition = this.legendPosition();\n\t\t}\n\t\tif (this._prevdataVisible !== this.dataVisible()) {\n\t\t\tthis._prevdataVisible = this.dataVisible();\n\t\t\tthis._toggleData.selected(this._prevdataVisible);\n\t\t\tthis._legend.visible(this._prevlegendVisible && !this._prevdataVisible);\n\t\t\tthis._carousel.active(this._prevdataVisible ? 1 : 0);\n\t\t}\n\t\tif (this._prevlegendVisible !== this.legendVisible()) {\n\t\t\tthis._prevlegendVisible = this.legendVisible();\n\t\t\tthis._toggleLegend.selected(this._prevlegendVisible);\n\t\t\tthis._legend.visible(this._prevlegendVisible && !this._prevdataVisible);\n\t\t}\n\t\tthis._legend.orientation(this.legendPosition() === \"bottom\" ? \"horizontal\" : \"vertical\");\n\t\tthis.showLeft(!this.left());\n\t\tswitch (this.getResponsiveMode()) {\n\t\t\tcase \"tiny\":\n\t\t\t\tthis.preUpdateTiny(element);\n\t\t\t\tbreak;\n\t\t\tcase \"small\":\n\t\t\t\tthis.preUpdateSmall(element);\n\t\t\t\tbreak;\n\t\t\tcase \"regular\":\n\t\t\t\tthis.preUpdateRegular(element);\n\t\t\t\tbreak;\n\t\t}\n\t\tconst chart = this._widget.classID() === \"composite_MultiChart\" ? this._widget[\"chart\"]() : this._widget;\n\t\tthis._legend.dataFamily(chart._dataFamily || \"any\");\n\t\tif (this._prevChartDataFamily !== this._legend.dataFamily()) {\n\t\t\tthis._prevChartDataFamily = this._legend.dataFamily();\n\t\t\tswitch (this._prevChartDataFamily) {\n\t\t\t\tcase \"any\":\n\t\t\t\t\tthis._toggleLegend.selected(false);\n\t\t\t\t\tthis._legend.visible(false);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\telement.style(\"box-shadow\", this.highlight() ? `inset 0px 0px 0px ${this.highlightSize()}px ${this.highlightColor()}` : \"none\");\n\t\tif (this._hideLegendToggleList.indexOf(chart.classID()) !== -1) {\n\t\t\tthis._spacer.visible(false);\n\t\t\tthis._toggleLegend.visible(false);\n\t\t} else {\n\t\t\tthis._spacer.visible(true);\n\t\t\tthis._toggleLegend.visible(true);\n\t\t}\n\t\tif (this._prevChart !== chart) {\n\t\t\tthis._prevChart = chart;\n\t\t\tconst widgetIconBar = chart ? chart[\"_titleBar\"] || chart[\"_iconBar\"] : void 0;\n\t\t\tif (widgetIconBar && widgetIconBar instanceof IconBar) {\n\t\t\t\tthis._prevButtons = this._prevButtons || [...this.buttons()];\n\t\t\t\tconst buttons = [\n\t\t\t\t\t...widgetIconBar.buttons(),\n\t\t\t\t\tnew Spacer(),\n\t\t\t\t\t...this._prevButtons\n\t\t\t\t];\n\t\t\t\twidgetIconBar.buttons([]).render();\n\t\t\t\tthis.buttons(buttons);\n\t\t\t} else if (this._prevButtons) this.buttons(this._prevButtons);\n\t\t}\n\t\tconst hiddenButtons = [];\n\t\tif (!this.dataButtonVisible()) hiddenButtons.push(this._toggleData);\n\t\tif (!this.downloadButtonVisible()) hiddenButtons.push(this._buttonDownload);\n\t\tif (!this.downloadImageButtonVisible()) hiddenButtons.push(this._buttonDownloadImage);\n\t\tif (!this.legendButtonVisible()) hiddenButtons.push(this._toggleLegend);\n\t\tthis._buttonDownloadImage.enabled(this.widget() instanceof SVGWidget);\n\t\tthis._titleBar.hiddenButtons(hiddenButtons).visible(this.titleVisible());\n\t\tthis.topOverlay(this.titleOverlay() || !this.titleVisible());\n\t}\n\tpostUpdate(domNode, element) {\n\t\tsuper.postUpdate(domNode, element);\n\t\tswitch (this.getResponsiveMode()) {\n\t\t\tcase \"tiny\":\n\t\t\t\tthis.postUpdateTiny(element);\n\t\t\t\tbreak;\n\t\t\tcase \"small\":\n\t\t\t\tthis.postUpdateSmall(element);\n\t\t\t\tbreak;\n\t\t\tcase \"regular\":\n\t\t\t\tthis.postUpdateRegular(element);\n\t\t\t\tbreak;\n\t\t}\n\t}\n\tpostUpdateTiny(element) {\n\t\telement.selectAll(\"div.body,div.title-text,div.icon-bar\").style(\"display\", \"none\");\n\t\telement.selectAll(\"div.data-count\").style(\"visibility\", \"visible\").style(\"font-size\", this.titleIconFontSize() / 3 + \"px\").style(\"line-height\", this.titleIconFontSize() / 3 + \"px\").style(\"left\", this.titleIconFontSize() + \"px\").text(this.data().length);\n\t\telement.style(\"transform\", \"translate(0px,0px) scale(1)\");\n\t\tconst iconDiv = element.selectAll(\"div.title-icon\");\n\t\tconst _node = iconDiv.node();\n\t\tconst containerRect = element.node().parentElement.getBoundingClientRect();\n\t\tif (_node) {\n\t\t\tconst rect = iconDiv.node().getBoundingClientRect();\n\t\t\tconst icon_top = containerRect.height / 2;\n\t\t\ticonDiv.style(\"position\", \"absolute\").style(\"left\", `calc(50% - ${rect.width / 2}px)`).style(\"top\", `${icon_top - rect.height / 2}px`);\n\t\t\telement.selectAll(\"div.data-count\").style(\"position\", \"absolute\").style(\"left\", `calc(50% + ${rect.width / 2}px)`).style(\"top\", `${icon_top - rect.height / 2}px`);\n\t\t}\n\t}\n\tpostUpdateSmall(element) {\n\t\telement.selectAll(\"lhs\").style(\"display\", \"none\");\n\t\telement.selectAll(\"div.title-icon\").style(\"position\", \"static\");\n\t\telement.selectAll(\"div.body,div.title-text,div.icon-bar\").style(\"display\", \"\");\n\t\telement.selectAll(\"div.data-count\").style(\"visibility\", \"hidden\");\n\t\tconst rect = element.node().getBoundingClientRect();\n\t\tconst parentRect = element.node().parentElement.getBoundingClientRect();\n\t\telement.style(\"transform\", `translate(${parentRect.x - rect.x}px, ${parentRect.y - rect.y}px) scale(${this._scale})`);\n\t}\n\tpostUpdateRegular(element) {\n\t\telement.selectAll(\"div.title-icon\").style(\"position\", \"static\");\n\t\telement.selectAll(\"div.body,div.title-text,div.icon-bar\").style(\"display\", \"\");\n\t\telement.selectAll(\"div.data-count\").style(\"visibility\", \"hidden\");\n\t}\n\texit(domNode, element) {\n\t\tthis._progressBar.exit(domNode, element);\n\t\tthis.right(null);\n\t\tthis._legend.target(null);\n\t\tthis.center(null);\n\t\tthis._carousel.target(null);\n\t\tthis.top(null);\n\t\tthis._titleBar.target(null);\n\t\tthis._modal.target(null);\n\t\tdelete this._prevChart;\n\t\tdelete this._prevButtons;\n\t\tdelete this._prevChartDataFamily;\n\t\tdelete this._prevPos;\n\t\tdelete this._prevdataVisible;\n\t\tdelete this._prevlegendVisible;\n\t\tsuper.exit(domNode, element);\n\t}\n\tclick(row, column, selected) {}\n\tdblclick(row, column, selected) {}\n\tvertex_click(row, col, sel, more) {\n\t\tif (more && more.vertex) {}\n\t}\n\tvertex_dblclick(row, col, sel, more) {\n\t\tif (more && more.vertex) {}\n\t}\n\tedge_click(row, col, sel, more) {\n\t\tif (more && more.edge) {}\n\t}\n\tedge_dblclick(row, col, sel, more) {\n\t\tif (more && more.edge) {}\n\t}\n};\nChartPanel.prototype._class += \" layout_ChartPanel\";\nChartPanel.prototype.publishReset();\nChartPanel.prototype.publishProxy(\"title\", \"_titleBar\");\nChartPanel.prototype.publish(\"titleVisible\", true, \"boolean\");\nChartPanel.prototype.publish(\"titleOverlay\", false, \"boolean\");\nChartPanel.prototype.publishProxy(\"titleIcon\", \"_titleBar\");\nChartPanel.prototype.publishProxy(\"titleIconFont\", \"_titleBar\");\nChartPanel.prototype.publishProxy(\"titleFont\", \"_titleBar\");\nChartPanel.prototype.publishProxy(\"titleIconFontSize\", \"_titleBar\");\nChartPanel.prototype.publishProxy(\"titleFontSize\", \"_titleBar\");\nChartPanel.prototype.publishProxy(\"description\", \"_titleBar\");\nChartPanel.prototype.publishProxy(\"descriptionFont\", \"_titleBar\");\nChartPanel.prototype.publishProxy(\"descriptionFontSize\", \"_titleBar\");\nChartPanel.prototype.publish(\"dataVisible\", false, \"boolean\", \"Show data table\");\nChartPanel.prototype.publish(\"dataButtonVisible\", true, \"boolean\", \"Show data table button\");\nChartPanel.prototype.publish(\"downloadButtonVisible\", true, \"boolean\", \"Show data download button\");\nChartPanel.prototype.publish(\"downloadImageButtonVisible\", false, \"boolean\", \"Show image download button\");\nChartPanel.prototype.publish(\"downloadTitle\", \"\", \"string\", \"File name when downloaded\");\nChartPanel.prototype.publish(\"downloadTimestampSuffix\", true, \"boolean\", \"Use timestamp as file name suffix\");\nChartPanel.prototype.publish(\"legendVisible\", false, \"boolean\", \"Show legend\");\nChartPanel.prototype.publish(\"legendButtonVisible\", true, \"boolean\", \"Show legend button\");\nChartPanel.prototype.publish(\"legendPosition\", \"right\", \"set\", \"Position of legend\", [\"right\", \"bottom\"]);\nChartPanel.prototype.publishProxy(\"legend_labelMaxWidth\", \"_legend\", \"labelMaxWidth\");\nChartPanel.prototype.publishProxy(\"legend_showSeriesTotal\", \"_legend\", \"showSeriesTotal\");\nChartPanel.prototype.publishProxy(\"legend_showLegendTotal\", \"_legend\", \"showLegendTotal\");\nChartPanel.prototype.publishProxy(\"legend_itemPadding\", \"_legend\", \"itemPadding\");\nChartPanel.prototype.publishProxy(\"legend_shapeRadius\", \"_legend\", \"shapeRadius\");\nChartPanel.prototype.publishProxy(\"legend_symbolType\", \"_legend\", \"symbolType\");\nChartPanel.prototype.publishProxy(\"legend_labelAlign\", \"_legend\", \"labelAlign\");\nChartPanel.prototype.publish(\"widget\", null, \"widget\", \"Widget\", void 0, { render: false });\nChartPanel.prototype.publish(\"enableAutoscaling\", false, \"boolean\");\nChartPanel.prototype.publish(\"highlightSize\", 4, \"number\");\nChartPanel.prototype.publish(\"highlightColor\", \"#e67e22\", \"html-color\");\nChartPanel.prototype.publishProxy(\"progress_halfLife\", \"_progressBar\", \"halfLife\");\nChartPanel.prototype.publishProxy(\"progress_decay\", \"_progressBar\", \"decay\");\nChartPanel.prototype.publishProxy(\"progress_size\", \"_progressBar\", \"size\");\nChartPanel.prototype.publishProxy(\"progress_color\", \"_progressBar\", \"color\");\nChartPanel.prototype.publishProxy(\"progress_blurBar\", \"_progressBar\", \"blurBar\");\nChartPanel.prototype.publishProxy(\"progress_blurSize\", \"_progressBar\", \"blurSize\");\nChartPanel.prototype.publishProxy(\"progress_blurColor\", \"_progressBar\", \"blurColor\");\nChartPanel.prototype.publishProxy(\"progress_blurOpacity\", \"_progressBar\", \"blurOpacity\");\nChartPanel.prototype.widget = function(_) {\n\tif (!arguments.length) return this._widget;\n\tthis._carousel.widgets([_, this._table]);\n\tthis._widget = _;\n\tthis._widget.fields(this._legend.filteredFields()).data(this._legend.filteredData());\n\tconst context = this;\n\tconst tmpAny = this._widget;\n\ttmpAny.click = function() {\n\t\tcontext.click.apply(context, arguments);\n\t};\n\ttmpAny.dblclick = function() {\n\t\tcontext.dblclick.apply(context, arguments);\n\t};\n\ttmpAny.vertex_click = function() {\n\t\tcontext.vertex_click.apply(context, arguments);\n\t};\n\ttmpAny.vertex_dblclick = function() {\n\t\tcontext.vertex_dblclick.apply(context, arguments);\n\t};\n\ttmpAny.edge_click = function() {\n\t\tcontext.edge_click.apply(context, arguments);\n\t};\n\ttmpAny.edge_dblclick = function() {\n\t\tcontext.edge_dblclick.apply(context, arguments);\n\t};\n\treturn this;\n};\n\n//#endregion\n//#region src/FlexGrid.ts\nvar FlexGrid = class extends HTMLWidget {\n\tconstructor() {\n\t\tsuper();\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tselect(domNode.parentNode).style(\"height\", \"100%\").style(\"width\", \"100%\");\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t\tconst context = this;\n\t\tconst cachedSizes = [];\n\t\tthis.updateFlexParent(element);\n\t\tconst listItems = element.selectAll(\".FlexGrid-list-item\").data(this.widgets(), (w) => w.id());\n\t\tlistItems.enter().append(\"div\").classed(\"FlexGrid-list-item\", true).each(function(w) {\n\t\t\tw.target(this);\n\t\t}).merge(listItems).style(\"min-height\", this.itemMinHeight() + \"px\").style(\"min-width\", this.itemMinWidth() + \"px\").style(\"flex-basis\", (n, i) => {\n\t\t\tconst flexBasis = this.widgetsFlexBasis()[i];\n\t\t\treturn typeof flexBasis !== \"undefined\" ? flexBasis : this.flexBasis();\n\t\t}).style(\"flex-grow\", (n, i) => {\n\t\t\tconst flexGrow = this.widgetsFlexGrow()[i];\n\t\t\treturn typeof flexGrow !== \"undefined\" ? flexGrow : this.flexGrow();\n\t\t}).style(\"border-width\", this.borderWidth() + \"px\").style(\"border-color\", this.itemBorderColor()).each(function() {\n\t\t\tthis.firstChild.style.display = \"none\";\n\t\t}).each(function() {\n\t\t\tconst rect = this.getBoundingClientRect();\n\t\t\tcachedSizes.push([rect.width, rect.height]);\n\t\t}).each(function(w, i) {\n\t\t\tthis.firstChild.style.display = \"block\";\n\t\t\tw.resize({\n\t\t\t\twidth: cachedSizes[i][0] - 2 * context.borderWidth(),\n\t\t\t\theight: cachedSizes[i][1] - 2 * context.borderWidth()\n\t\t\t});\n\t\t});\n\t\tlistItems.exit().remove();\n\t}\n\texit(domNode, element) {\n\t\tsuper.exit(domNode, element);\n\t}\n\tupdateFlexParent(element) {\n\t\telement.style(\"height\", \"100%\").style(\"flex-direction\", this.orientation() === \"horizontal\" ? \"row\" : \"column\").style(\"flex-wrap\", this.flexWrap()).style(\"align-items\", this.alignItems()).style(\"align-content\", this.alignContent()).style(\"overflow-x\", () => {\n\t\t\tif (this.forceXScroll() || this.orientation() === \"horizontal\" && this.flexWrap() === \"nowrap\" && !this.disableScroll()) return \"scroll\";\n\t\t\treturn \"hidden\";\n\t\t}).style(\"overflow-y\", () => {\n\t\t\tif (this.forceYScroll() || this.orientation() === \"vertical\" && this.flexWrap() === \"nowrap\" && !this.disableScroll()) return \"scroll\";\n\t\t\treturn \"hidden\";\n\t\t});\n\t}\n};\nFlexGrid.prototype._class += \" layout_FlexGrid\";\nFlexGrid.prototype.publish(\"itemBorderColor\", \"transparent\", \"html-color\", \"Color of list item borders\");\nFlexGrid.prototype.publish(\"borderWidth\", 0, \"number\", \"Width of list item borders (pixels)\");\nFlexGrid.prototype.publish(\"orientation\", \"horizontal\", \"set\", \"Controls the flex-direction of the list items\", [\"horizontal\", \"vertical\"]);\nFlexGrid.prototype.publish(\"flexWrap\", \"wrap\", \"set\", \"Controls the line wrap when overflow occurs\", [\n\t\"nowrap\",\n\t\"wrap\",\n\t\"wrap-reverse\"\n]);\nFlexGrid.prototype.publish(\"disableScroll\", false, \"boolean\", \"If false, scrollbar will show (when flexWrap is set to 'nowrap')\", null, { disable: (w) => w.flexWrap() !== \"nowrap\" });\nFlexGrid.prototype.publish(\"forceXScroll\", false, \"boolean\", \"If true, horzontal scrollbar will show\");\nFlexGrid.prototype.publish(\"forceYScroll\", false, \"boolean\", \"If true, vertical scrollbar will show\");\nFlexGrid.prototype.publish(\"itemMinHeight\", 64, \"number\", \"Minimum height of a list item (pixels)\");\nFlexGrid.prototype.publish(\"itemMinWidth\", 64, \"number\", \"Minimum width of a list item (pixels)\");\nFlexGrid.prototype.publish(\"alignItems\", \"stretch\", \"set\", \"Controls normal alignment of items\", [\n\t\"flex-start\",\n\t\"center\",\n\t\"flex-end\",\n\t\"stretch\"\n]);\nFlexGrid.prototype.publish(\"alignContent\", \"stretch\", \"set\", \"Controls normal alignment of item rows\", [\n\t\"flex-start\",\n\t\"center\",\n\t\"flex-end\",\n\t\"stretch\",\n\t\"space-between\",\n\t\"space-around\"\n]);\nFlexGrid.prototype.publish(\"flexGrow\", 1, \"number\", \"Default flex-grow style for all list items\");\nFlexGrid.prototype.publish(\"flexBasis\", \"10%\", \"string\", \"Default flex-basis style for all list items\");\nFlexGrid.prototype.publish(\"widgetsFlexGrow\", [], \"array\", \"Array of flex-grow values keyed on the widgets array\");\nFlexGrid.prototype.publish(\"widgetsFlexBasis\", [], \"array\", \"Array of flex-basis values keyed on the widgets array\");\nFlexGrid.prototype.publish(\"widgets\", [], \"widgetArray\", \"Array of widgets to be rendered as list items\");\n\n//#endregion\n//#region ../../node_modules/grid-list/src/gridList.js\nvar require_gridList = /* @__PURE__ */ __commonJS({ \"../../node_modules/grid-list/src/gridList.js\": ((exports, module) => {\n\t(function(root, factory) {\n\t\tif (typeof define === \"function\" && define.amd) define([], factory);\n\t\telse if (typeof exports === \"object\") module.exports = factory();\n\t\telse root.GridList = factory();\n\t})(exports, function() {\n\t\tvar GridList$1 = function(items, options) {\n\t\t\t/**\n\t\t\t* A GridList manages the two-dimensional positions from a list of items,\n\t\t\t* within a virtual matrix.\n\t\t\t*\n\t\t\t* The GridList's main function is to convert the item positions from one\n\t\t\t* grid size to another, maintaining as much of their order as possible.\n\t\t\t*\n\t\t\t* The GridList's second function is to handle collisions when moving an item\n\t\t\t* over another.\n\t\t\t*\n\t\t\t* The positioning algorithm places items in columns. Starting from left to\n\t\t\t* right, going through each column top to bottom.\n\t\t\t*\n\t\t\t* The size of an item is expressed using the number of cols and rows it\n\t\t\t* takes up within the grid (w and h)\n\t\t\t*\n\t\t\t* The position of an item is express using the col and row position within\n\t\t\t* the grid (x and y)\n\t\t\t*\n\t\t\t* An item is an object of structure:\n\t\t\t* {\n\t\t\t* w: 3, h: 1,\n\t\t\t* x: 0, y: 1\n\t\t\t* }\n\t\t\t*/\n\t\t\tthis._options = options;\n\t\t\tfor (var k$1 in this.defaults) if (!this._options.hasOwnProperty(k$1)) this._options[k$1] = this.defaults[k$1];\n\t\t\tthis.items = items;\n\t\t\tthis._adjustSizeOfItems();\n\t\t\tthis.generateGrid();\n\t\t};\n\t\tGridList$1.cloneItems = function(items, _items) {\n\t\t\t/**\n\t\t\t* Clone items with a deep level of one. Items are not referenced but their\n\t\t\t* properties are\n\t\t\t*/\n\t\t\tvar i, k$1;\n\t\t\tif (_items === void 0) _items = [];\n\t\t\tfor (i = 0; i < items.length; i++) {\n\t\t\t\tif (!_items[i]) _items[i] = {};\n\t\t\t\tfor (k$1 in items[i]) _items[i][k$1] = items[i][k$1];\n\t\t\t}\n\t\t\treturn _items;\n\t\t};\n\t\tGridList$1.prototype = {\n\t\t\tdefaults: {\n\t\t\t\tlanes: 5,\n\t\t\t\tdirection: \"horizontal\"\n\t\t\t},\n\t\t\ttoString: function() {\n\t\t\t\tvar widthOfGrid = this.grid.length, output = \"\\n #|\", border = \"\\n --\", item, i, j;\n\t\t\t\tfor (i = 0; i < widthOfGrid; i++) {\n\t\t\t\t\toutput += \" \" + this._padNumber(i, \" \");\n\t\t\t\t\tborder += \"---\";\n\t\t\t\t}\n\t\t\t\toutput += border;\n\t\t\t\tfor (i = 0; i < this._options.lanes; i++) {\n\t\t\t\t\toutput += \"\\n\" + this._padNumber(i, \" \") + \"|\";\n\t\t\t\t\tfor (j = 0; j < widthOfGrid; j++) {\n\t\t\t\t\t\toutput += \" \";\n\t\t\t\t\t\titem = this.grid[j][i];\n\t\t\t\t\t\toutput += item ? this._padNumber(this.items.indexOf(item), \"0\") : \"--\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\toutput += \"\\n\";\n\t\t\t\treturn output;\n\t\t\t},\n\t\t\tgenerateGrid: function() {\n\t\t\t\t/**\n\t\t\t\t* Build the grid structure from scratch, with the current item positions\n\t\t\t\t*/\n\t\t\t\tvar i;\n\t\t\t\tthis._resetGrid();\n\t\t\t\tfor (i = 0; i < this.items.length; i++) this._markItemPositionToGrid(this.items[i]);\n\t\t\t},\n\t\t\tresizeGrid: function(lanes) {\n\t\t\t\tvar currentColumn = 0;\n\t\t\t\tthis._options.lanes = lanes;\n\t\t\t\tthis._adjustSizeOfItems();\n\t\t\t\tthis._sortItemsByPosition();\n\t\t\t\tthis._resetGrid();\n\t\t\t\tfor (var i = 0; i < this.items.length; i++) {\n\t\t\t\t\tvar item = this.items[i], position = this._getItemPosition(item);\n\t\t\t\t\tthis._updateItemPosition(item, this.findPositionForItem(item, {\n\t\t\t\t\t\tx: currentColumn,\n\t\t\t\t\t\ty: 0\n\t\t\t\t\t}));\n\t\t\t\t\tcurrentColumn = Math.max(currentColumn, position.x);\n\t\t\t\t}\n\t\t\t\tthis._pullItemsToLeft();\n\t\t\t},\n\t\t\tfindPositionForItem: function(item, start, fixedRow) {\n\t\t\t\t/**\n\t\t\t\t* This method has two options for the position we want for the item:\n\t\t\t\t* - Starting from a certain row/column number and only looking for\n\t\t\t\t* positions to its right\n\t\t\t\t* - Accepting positions for a certain row number only (use-case: items\n\t\t\t\t* being shifted to the left/right as a result of collisions)\n\t\t\t\t*\n\t\t\t\t* @param {Object<x:Number, y:Number, w:Number, h:Number} item\n\t\t\t\t* @param {Object<x:Number, y:Number} start Position from which to start\n\t\t\t\t* the search.\n\t\t\t\t* @param {Number} [fixedRow] If provided, we're going to try to find a\n\t\t\t\t* position for the new item on it. If doesn't fit there, we're going\n\t\t\t\t* to put it on the first row.\n\t\t\t\t*\n\t\t\t\t* @returns {Number[2]} x and y.\n\t\t\t\t*/\n\t\t\t\tvar x, y, position;\n\t\t\t\tfor (x = start.x; x < this.grid.length; x++) if (fixedRow !== void 0) {\n\t\t\t\t\tposition = [x, fixedRow];\n\t\t\t\t\tif (this._itemFitsAtPosition(item, position)) return position;\n\t\t\t\t} else for (y = start.y; y < this._options.lanes; y++) {\n\t\t\t\t\tposition = [x, y];\n\t\t\t\t\tif (this._itemFitsAtPosition(item, position)) return position;\n\t\t\t\t}\n\t\t\t\tvar newCol = this.grid.length, newRow = 0;\n\t\t\t\tif (fixedRow !== void 0 && this._itemFitsAtPosition(item, [newCol, fixedRow])) newRow = fixedRow;\n\t\t\t\treturn [newCol, newRow];\n\t\t\t},\n\t\t\tmoveItemToPosition: function(item, newPosition) {\n\t\t\t\tvar position = this._getItemPosition({\n\t\t\t\t\tx: newPosition[0],\n\t\t\t\t\ty: newPosition[1],\n\t\t\t\t\tw: item.w,\n\t\t\t\t\th: item.h\n\t\t\t\t});\n\t\t\t\tthis._updateItemPosition(item, [position.x, position.y]);\n\t\t\t\tthis._resolveCollisions(item);\n\t\t\t},\n\t\t\tresizeItem: function(item, size) {\n\t\t\t\t/**\n\t\t\t\t* Resize an item and resolve collisions.\n\t\t\t\t*\n\t\t\t\t* @param {Object} item A reference to an item that's part of the grid.\n\t\t\t\t* @param {Object} size\n\t\t\t\t* @param {Number} [size.w=item.w] The new width.\n\t\t\t\t* @param {Number} [size.h=item.h] The new height.\n\t\t\t\t*/\n\t\t\t\tvar width = size.w || item.w, height = size.h || item.h;\n\t\t\t\tthis._updateItemSize(item, width, height);\n\t\t\t\tthis._resolveCollisions(item);\n\t\t\t\tthis._pullItemsToLeft();\n\t\t\t},\n\t\t\tgetChangedItems: function(initialItems, idAttribute) {\n\t\t\t\t/**\n\t\t\t\t* Compare the current items against a previous snapshot and return only\n\t\t\t\t* the ones that changed their attributes in the meantime. This includes both\n\t\t\t\t* position (x, y) and size (w, h)\n\t\t\t\t*\n\t\t\t\t* Since both their position and size can change, the items need an\n\t\t\t\t* additional identifier attribute to match them with their previous state\n\t\t\t\t*/\n\t\t\t\tvar changedItems = [];\n\t\t\t\tfor (var i = 0; i < initialItems.length; i++) {\n\t\t\t\t\tvar item = this._getItemByAttribute(idAttribute, initialItems[i][idAttribute]);\n\t\t\t\t\tif (item.x !== initialItems[i].x || item.y !== initialItems[i].y || item.w !== initialItems[i].w || item.h !== initialItems[i].h) changedItems.push(item);\n\t\t\t\t}\n\t\t\t\treturn changedItems;\n\t\t\t},\n\t\t\t_sortItemsByPosition: function() {\n\t\t\t\tthis.items.sort(function(item1, item2) {\n\t\t\t\t\tvar position1 = this._getItemPosition(item1), position2 = this._getItemPosition(item2);\n\t\t\t\t\tif (position1.x != position2.x) return position1.x - position2.x;\n\t\t\t\t\tif (position1.y != position2.y) return position1.y - position2.y;\n\t\t\t\t\treturn 0;\n\t\t\t\t}.bind(this));\n\t\t\t},\n\t\t\t_adjustSizeOfItems: function() {\n\t\t\t\t/**\n\t\t\t\t* Some items can have 100% height or 100% width. Those dimmensions are\n\t\t\t\t* expressed as 0. We need to ensure a valid width and height for each of\n\t\t\t\t* those items as the number of items per lane.\n\t\t\t\t*/\n\t\t\t\tfor (var i = 0; i < this.items.length; i++) {\n\t\t\t\t\tvar item = this.items[i];\n\t\t\t\t\tif (item.autoSize === void 0) item.autoSize = item.w === 0 || item.h === 0;\n\t\t\t\t\tif (item.autoSize) if (this._options.direction === \"horizontal\") item.h = this._options.lanes;\n\t\t\t\t\telse item.w = this._options.lanes;\n\t\t\t\t}\n\t\t\t},\n\t\t\t_resetGrid: function() {\n\t\t\t\tthis.grid = [];\n\t\t\t},\n\t\t\t_itemFitsAtPosition: function(item, newPosition) {\n\t\t\t\t/**\n\t\t\t\t* Check that an item wouldn't overlap with another one if placed at a\n\t\t\t\t* certain position within the grid\n\t\t\t\t*/\n\t\t\t\tvar position = this._getItemPosition(item), x, y;\n\t\t\t\tif (newPosition[0] < 0 || newPosition[1] < 0) return false;\n\t\t\t\tif (newPosition[1] + position.h > this._options.lanes) return false;\n\t\t\t\tfor (x = newPosition[0]; x < newPosition[0] + position.w; x++) {\n\t\t\t\t\tvar col = this.grid[x];\n\t\t\t\t\tif (!col) continue;\n\t\t\t\t\tfor (y = newPosition[1]; y < newPosition[1] + position.h; y++) if (col[y] && col[y] !== item) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t},\n\t\t\t_updateItemPosition: function(item, position) {\n\t\t\t\tif (item.x !== null && item.y !== null) this._deleteItemPositionFromGrid(item);\n\t\t\t\tthis._setItemPosition(item, position);\n\t\t\t\tthis._markItemPositionToGrid(item);\n\t\t\t},\n\t\t\t_updateItemSize: function(item, width, height) {\n\t\t\t\t/**\n\t\t\t\t* @param {Object} item A reference to a grid item.\n\t\t\t\t* @param {Number} width The new width.\n\t\t\t\t* @param {Number} height The new height.\n\t\t\t\t*/\n\t\t\t\tif (item.x !== null && item.y !== null) this._deleteItemPositionFromGrid(item);\n\t\t\t\titem.w = width;\n\t\t\t\titem.h = height;\n\t\t\t\tthis._markItemPositionToGrid(item);\n\t\t\t},\n\t\t\t_markItemPositionToGrid: function(item) {\n\t\t\t\t/**\n\t\t\t\t* Mark the grid cells that are occupied by an item. This prevents items\n\t\t\t\t* from overlapping in the grid\n\t\t\t\t*/\n\t\t\t\tvar position = this._getItemPosition(item), x, y;\n\t\t\t\tthis._ensureColumns(position.x + position.w);\n\t\t\t\tfor (x = position.x; x < position.x + position.w; x++) for (y = position.y; y < position.y + position.h; y++) this.grid[x][y] = item;\n\t\t\t},\n\t\t\t_deleteItemPositionFromGrid: function(item) {\n\t\t\t\tvar position = this._getItemPosition(item), x, y;\n\t\t\t\tfor (x = position.x; x < position.x + position.w; x++) {\n\t\t\t\t\tif (!this.grid[x]) continue;\n\t\t\t\t\tfor (y = position.y; y < position.y + position.h; y++) if (this.grid[x][y] == item) this.grid[x][y] = null;\n\t\t\t\t}\n\t\t\t},\n\t\t\t_ensureColumns: function(N) {\n\t\t\t\t/**\n\t\t\t\t* Ensure that the grid has at least N columns available.\n\t\t\t\t*/\n\t\t\t\tvar i;\n\t\t\t\tfor (i = 0; i < N; i++) if (!this.grid[i]) this.grid.push(new GridCol(this._options.lanes));\n\t\t\t},\n\t\t\t_getItemsCollidingWithItem: function(item) {\n\t\t\t\tvar collidingItems = [];\n\t\t\t\tfor (var i = 0; i < this.items.length; i++) if (item != this.items[i] && this._itemsAreColliding(item, this.items[i])) collidingItems.push(i);\n\t\t\t\treturn collidingItems;\n\t\t\t},\n\t\t\t_itemsAreColliding: function(item1, item2) {\n\t\t\t\tvar position1 = this._getItemPosition(item1), position2 = this._getItemPosition(item2);\n\t\t\t\treturn !(position2.x >= position1.x + position1.w || position2.x + position2.w <= position1.x || position2.y >= position1.y + position1.h || position2.y + position2.h <= position1.y);\n\t\t\t},\n\t\t\t_resolveCollisions: function(item) {\n\t\t\t\tif (!this._tryToResolveCollisionsLocally(item)) this._pullItemsToLeft(item);\n\t\t\t\tthis._pullItemsToLeft();\n\t\t\t},\n\t\t\t_tryToResolveCollisionsLocally: function(item) {\n\t\t\t\t/**\n\t\t\t\t* Attempt to resolve the collisions after moving a an item over one or more\n\t\t\t\t* other items within the grid, by shifting the position of the colliding\n\t\t\t\t* items around the moving one. This might result in subsequent collisions,\n\t\t\t\t* in which case we will revert all position permutations. To be able to\n\t\t\t\t* revert to the initial item positions, we create a virtual grid in the\n\t\t\t\t* process\n\t\t\t\t*/\n\t\t\t\tvar collidingItems = this._getItemsCollidingWithItem(item);\n\t\t\t\tif (!collidingItems.length) return true;\n\t\t\t\tvar _gridList = new GridList$1([], this._options), leftOfItem, rightOfItem, aboveOfItem, belowOfItem;\n\t\t\t\tGridList$1.cloneItems(this.items, _gridList.items);\n\t\t\t\t_gridList.generateGrid();\n\t\t\t\tfor (var i = 0; i < collidingItems.length; i++) {\n\t\t\t\t\tvar collidingItem = _gridList.items[collidingItems[i]], collidingPosition = this._getItemPosition(collidingItem);\n\t\t\t\t\tvar position = this._getItemPosition(item);\n\t\t\t\t\tleftOfItem = [position.x - collidingPosition.w, collidingPosition.y];\n\t\t\t\t\trightOfItem = [position.x + position.w, collidingPosition.y];\n\t\t\t\t\taboveOfItem = [collidingPosition.x, position.y - collidingPosition.h];\n\t\t\t\t\tbelowOfItem = [collidingPosition.x, position.y + position.h];\n\t\t\t\t\tif (_gridList._itemFitsAtPosition(collidingItem, leftOfItem)) _gridList._updateItemPosition(collidingItem, leftOfItem);\n\t\t\t\t\telse if (_gridList._itemFitsAtPosition(collidingItem, aboveOfItem)) _gridList._updateItemPosition(collidingItem, aboveOfItem);\n\t\t\t\t\telse if (_gridList._itemFitsAtPosition(collidingItem, belowOfItem)) _gridList._updateItemPosition(collidingItem, belowOfItem);\n\t\t\t\t\telse if (_gridList._itemFitsAtPosition(collidingItem, rightOfItem)) _gridList._updateItemPosition(collidingItem, rightOfItem);\n\t\t\t\t\telse return false;\n\t\t\t\t}\n\t\t\t\tGridList$1.cloneItems(_gridList.items, this.items);\n\t\t\t\tthis.generateGrid();\n\t\t\t\treturn true;\n\t\t\t},\n\t\t\t_pullItemsToLeft: function(fixedItem) {\n\t\t\t\t/**\n\t\t\t\t* Build the grid from scratch, by using the current item positions and\n\t\t\t\t* pulling them as much to the left as possible, removing as space between\n\t\t\t\t* them as possible.\n\t\t\t\t*\n\t\t\t\t* If a \"fixed item\" is provided, its position will be kept intact and the\n\t\t\t\t* rest of the items will be layed around it.\n\t\t\t\t*/\n\t\t\t\tthis._sortItemsByPosition();\n\t\t\t\tthis._resetGrid();\n\t\t\t\tif (fixedItem) {\n\t\t\t\t\tvar fixedPosition = this._getItemPosition(fixedItem);\n\t\t\t\t\tthis._updateItemPosition(fixedItem, [fixedPosition.x, fixedPosition.y]);\n\t\t\t\t}\n\t\t\t\tfor (var i = 0; i < this.items.length; i++) {\n\t\t\t\t\tvar item = this.items[i], position = this._getItemPosition(item);\n\t\t\t\t\tif (fixedItem && item == fixedItem) continue;\n\t\t\t\t\tvar x = this._findLeftMostPositionForItem(item), newPosition = this.findPositionForItem(item, {\n\t\t\t\t\t\tx,\n\t\t\t\t\t\ty: 0\n\t\t\t\t\t}, position.y);\n\t\t\t\t\tthis._updateItemPosition(item, newPosition);\n\t\t\t\t}\n\t\t\t},\n\t\t\t_findLeftMostPositionForItem: function(item) {\n\t\t\t\t/**\n\t\t\t\t* When pulling items to the left, we need to find the leftmost position for\n\t\t\t\t* an item, with two considerations in mind:\n\t\t\t\t* - preserving its current row\n\t\t\t\t* - preserving the previous horizontal order between items\n\t\t\t\t*/\n\t\t\t\tvar tail = 0, position = this._getItemPosition(item);\n\t\t\t\tfor (var i = 0; i < this.grid.length; i++) for (var j = position.y; j < position.y + position.h; j++) {\n\t\t\t\t\tvar otherItem = this.grid[i][j];\n\t\t\t\t\tif (!otherItem) continue;\n\t\t\t\t\tvar otherPosition = this._getItemPosition(otherItem);\n\t\t\t\t\tif (this.items.indexOf(otherItem) < this.items.indexOf(item)) tail = otherPosition.x + otherPosition.w;\n\t\t\t\t}\n\t\t\t\treturn tail;\n\t\t\t},\n\t\t\t_getItemByAttribute: function(key, value) {\n\t\t\t\tfor (var i = 0; i < this.items.length; i++) if (this.items[i][key] === value) return this.items[i];\n\t\t\t\treturn null;\n\t\t\t},\n\t\t\t_padNumber: function(nr, prefix) {\n\t\t\t\treturn nr >= 10 ? nr : prefix + nr;\n\t\t\t},\n\t\t\t_getItemPosition: function(item) {\n\t\t\t\t/**\n\t\t\t\t* If the direction is vertical we need to rotate the grid 90 deg to the\n\t\t\t\t* left. Thus, we simulate the fact that items are being pulled to the top.\n\t\t\t\t*\n\t\t\t\t* Since the items have widths and heights, if we apply the classic\n\t\t\t\t* counter-clockwise 90 deg rotation\n\t\t\t\t*\n\t\t\t\t* [0 -1]\n\t\t\t\t* [1 0]\n\t\t\t\t*\n\t\t\t\t* then the top left point of an item will become the bottom left point of\n\t\t\t\t* the rotated item. To adjust for this, we need to subtract from the y\n\t\t\t\t* position the height of the original item - the width of the rotated item.\n\t\t\t\t*\n\t\t\t\t* However, if we do this then we'll reverse some actions: resizing the\n\t\t\t\t* width of an item will stretch the item to the left instead of to the\n\t\t\t\t* right; resizing an item that doesn't fit into the grid will push the\n\t\t\t\t* items around it instead of going on a new row, etc.\n\t\t\t\t*\n\t\t\t\t* We found it better to do a vertical flip of the grid after rotating it.\n\t\t\t\t* This restores the direction of the actions and greatly simplifies the\n\t\t\t\t* transformations.\n\t\t\t\t*/\n\t\t\t\tif (this._options.direction === \"horizontal\") return item;\n\t\t\t\telse return {\n\t\t\t\t\tx: item.y,\n\t\t\t\t\ty: item.x,\n\t\t\t\t\tw: item.h,\n\t\t\t\t\th: item.w\n\t\t\t\t};\n\t\t\t},\n\t\t\t_setItemPosition: function(item, position) {\n\t\t\t\t/**\n\t\t\t\t* See _getItemPosition.\n\t\t\t\t*/\n\t\t\t\tif (this._options.direction === \"horizontal\") {\n\t\t\t\t\titem.x = position[0];\n\t\t\t\t\titem.y = position[1];\n\t\t\t\t} else {\n\t\t\t\t\titem.x = position[1];\n\t\t\t\t\titem.y = position[0];\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tvar GridCol = function(lanes) {\n\t\t\tfor (var i = 0; i < lanes; i++) this.push(null);\n\t\t};\n\t\tGridCol.prototype = [];\n\t\treturn GridList$1;\n\t});\n}) });\n\n//#endregion\n//#region src/Grid.css\nvar import_gridList = /* @__PURE__ */ __toESM(require_gridList(), 1);\n\n//#endregion\n//#region src/Grid.ts\nvar GridList = import_gridList && import_gridList.default || import_gridList;\nvar Grid = class extends HTMLWidget {\n\tdivItems;\n\tgridList;\n\titems;\n\titemsMap;\n\torigItems;\n\tcellWidth;\n\tcellHeight;\n\tdragItem;\n\tdragItemPos;\n\t_d3Drag;\n\t_d3DragResize;\n\t_selectionBag;\n\t_scrollBarWidth;\n\tconstructor() {\n\t\tsuper();\n\t\tthis._tag = \"div\";\n\t\tthis._selectionBag = new Utility.Selection(this);\n\t\tthis.content([]);\n\t}\n\tgetDimensions() {\n\t\tconst size = {\n\t\t\twidth: 0,\n\t\t\theight: 0\n\t\t};\n\t\tthis.content().forEach(function(cell) {\n\t\t\tif (size.width < cell.gridCol() + cell.gridColSpan()) size.width = cell.gridCol() + cell.gridColSpan();\n\t\t\tif (size.height < cell.gridRow() + cell.gridRowSpan()) size.height = cell.gridRow() + cell.gridRowSpan();\n\t\t}, this);\n\t\treturn size;\n\t}\n\tclearContent(widget) {\n\t\tthis.content(this.content().filter(function(contentWidget) {\n\t\t\tif (!widget) {\n\t\t\t\tcontentWidget.target(null);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tlet w = contentWidget;\n\t\t\twhile (w) {\n\t\t\t\tif (widget === w) {\n\t\t\t\t\tcontentWidget.target(null);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tw = w.widget ? w.widget() : null;\n\t\t\t}\n\t\t\treturn true;\n\t\t}));\n\t}\n\tsetContent(row, col, widget, title, rowSpan, colSpan) {\n\t\trowSpan = rowSpan || 1;\n\t\tcolSpan = colSpan || 1;\n\t\ttitle = title || \"\";\n\t\tthis.content(this.content().filter(function(contentWidget) {\n\t\t\tif (contentWidget.gridRow() === row && contentWidget.gridCol() === col) {\n\t\t\t\tcontentWidget.target(null);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}));\n\t\tif (widget) {\n\t\t\tconst cell = new Cell().gridRow(row).gridCol(col).widget(widget).title(title).gridRowSpan(rowSpan).gridColSpan(colSpan);\n\t\t\tthis.content().push(cell);\n\t\t}\n\t\treturn this;\n\t}\n\tsortedContent() {\n\t\treturn this.content().sort(function(l, r) {\n\t\t\tif (l.gridRow() === r.gridRow()) return l.gridCol() - r.gridCol();\n\t\t\treturn l.gridRow() - r.gridRow();\n\t\t});\n\t}\n\tgetCell(row, col) {\n\t\tlet retVal = null;\n\t\tthis.content().some(function(cell) {\n\t\t\tif (row >= cell.gridRow() && row < cell.gridRow() + cell.gridRowSpan() && col >= cell.gridCol() && col < cell.gridCol() + cell.gridColSpan()) {\n\t\t\t\tretVal = cell;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t});\n\t\treturn retVal;\n\t}\n\tgetWidgetCell(id) {\n\t\tlet retVal = null;\n\t\tthis.content().some(function(cell) {\n\t\t\tif (cell.widget().id() === id) {\n\t\t\t\tretVal = cell;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t});\n\t\treturn retVal;\n\t}\n\tgetContent(id) {\n\t\tlet retVal = null;\n\t\tthis.content().some(function(cell) {\n\t\t\tif (cell.widget().id() === id) {\n\t\t\t\tretVal = cell.widget();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t});\n\t\treturn retVal;\n\t}\n\tcellToGridItem(cell) {\n\t\treturn {\n\t\t\tx: cell.gridCol(),\n\t\t\ty: cell.gridRow(),\n\t\t\tw: cell.gridColSpan(),\n\t\t\th: cell.gridRowSpan(),\n\t\t\tid: cell.id(),\n\t\t\tcell\n\t\t};\n\t}\n\tgridItemToCell(item) {\n\t\titem.cell.gridCol(item.x).gridRow(item.y).gridColSpan(item.w).gridRowSpan(item.h);\n\t}\n\tresetItemsPos() {\n\t\tthis.origItems.forEach(function(origItem) {\n\t\t\tconst item = this.itemsMap[origItem.id];\n\t\t\titem.x = origItem.x;\n\t\t\titem.y = origItem.y;\n\t\t}, this);\n\t}\n\tinitGridList() {\n\t\tthis.itemsMap = {};\n\t\tthis.items = this.content().map(function(cell) {\n\t\t\tconst retVal = this.cellToGridItem(cell);\n\t\t\tthis.itemsMap[retVal.id] = retVal;\n\t\t\treturn retVal;\n\t\t}, this);\n\t\tthis.origItems = this.content().map(this.cellToGridItem);\n\t\tthis.gridList = new GridList(this.items, {\n\t\t\tdirection: this.snapping(),\n\t\t\tlanes: this.snapping() === \"horizontal\" ? this.snappingRows() : this.snappingColumns()\n\t\t});\n\t}\n\tkillGridList() {\n\t\tthis.gridList = null;\n\t\tdelete this.items;\n\t\tdelete this.itemsMap;\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tthis._scrollBarWidth = Platform.getScrollbarWidth();\n\t\tconst context = this;\n\t\tthis._d3Drag = drag().subject(function(_d) {\n\t\t\tconst d = context.cellToGridItem(_d);\n\t\t\treturn {\n\t\t\t\tx: d.x * context.cellWidth,\n\t\t\t\ty: d.y * context.cellHeight\n\t\t\t};\n\t\t}).on(\"start\", function(_d) {\n\t\t\tif (!context.designMode()) return;\n\t\t\td3Event().sourceEvent.stopPropagation();\n\t\t\tcontext.initGridList();\n\t\t\tconst d = context.itemsMap[_d.id()];\n\t\t\tcontext.dragItem = element.append(\"div\").attr(\"class\", \"dragging\").style(\"transform\", function() {\n\t\t\t\treturn \"translate(\" + d.x * context.cellWidth + \"px, \" + d.y * context.cellHeight + \"px)\";\n\t\t\t}).style(\"width\", function() {\n\t\t\t\treturn d.w * context.cellWidth - context.gutter() + \"px\";\n\t\t\t}).style(\"height\", function() {\n\t\t\t\treturn d.h * context.cellHeight - context.gutter() + \"px\";\n\t\t\t});\n\t\t\tcontext.selectionBagClick(_d);\n\t\t}).on(\"drag\", function(_d) {\n\t\t\tif (!context.designMode()) return;\n\t\t\tconst event = d3Event();\n\t\t\tevent.sourceEvent.stopPropagation();\n\t\t\tconst d = context.itemsMap[_d.id()];\n\t\t\tif (event.x < 0) event.x = 0;\n\t\t\tif (event.x + d.w * context.cellWidth > context.snappingColumns() * context.cellWidth) event.x = context.snappingColumns() * context.cellWidth - d.w * context.cellWidth;\n\t\t\tif (event.y < 0) event.y = 0;\n\t\t\tif (event.y + d.h * context.cellWidth > context.snappingRows() * context.cellWidth) event.y = context.snappingRows() * context.cellWidth - d.h * context.cellWidth;\n\t\t\tconst pos = [Math.max(0, Math.floor((event.x + context.cellWidth / 2) / context.cellWidth)), Math.max(0, Math.floor((event.y + context.cellHeight / 2) / context.cellHeight))];\n\t\t\tif (d.x !== pos[0] || d.y !== pos[1]) {\n\t\t\t\tif (context.snapping() !== \"none\") {\n\t\t\t\t\tcontext.resetItemsPos();\n\t\t\t\t\tcontext.gridList.moveItemToPosition(d, pos);\n\t\t\t\t} else {\n\t\t\t\t\td.x = pos[0];\n\t\t\t\t\td.y = pos[1];\n\t\t\t\t}\n\t\t\t\tif (_d.gridCol() !== d.x || _d.gridRow() !== d.y) {\n\t\t\t\t\tcontext.items.forEach(context.gridItemToCell);\n\t\t\t\t\tcontext.updateGrid(false, 100);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcontext.dragItem.style(\"transform\", function() {\n\t\t\t\treturn \"translate(\" + event.x + \"px, \" + event.y + \"px)\";\n\t\t\t}).style(\"width\", function() {\n\t\t\t\treturn d.w * context.cellWidth + \"px\";\n\t\t\t}).style(\"height\", function() {\n\t\t\t\treturn d.h * context.cellHeight + \"px\";\n\t\t\t});\n\t\t}).on(\"end\", function() {\n\t\t\tif (!context.designMode()) return;\n\t\t\td3Event().sourceEvent.stopPropagation();\n\t\t\tcontext.dragItem.remove();\n\t\t\tcontext.dragItem = null;\n\t\t\tcontext.killGridList();\n\t\t});\n\t\tthis._d3DragResize = drag().subject(function(_d) {\n\t\t\tconst d = context.cellToGridItem(_d);\n\t\t\treturn {\n\t\t\t\tx: (d.x + d.w - 1) * context.cellWidth,\n\t\t\t\ty: (d.y + d.h - 1) * context.cellHeight\n\t\t\t};\n\t\t}).on(\"start\", function(_d) {\n\t\t\tif (!context.designMode()) return;\n\t\t\td3Event().sourceEvent.stopPropagation();\n\t\t\tcontext.initGridList();\n\t\t\tconst d = context.itemsMap[_d.id()];\n\t\t\tcontext.dragItem = element.append(\"div\").attr(\"class\", \"resizing\").style(\"transform\", function() {\n\t\t\t\treturn \"translate(\" + d.x * context.cellWidth + \"px, \" + d.y * context.cellHeight + \"px)\";\n\t\t\t}).style(\"width\", function() {\n\t\t\t\treturn d.w * context.cellWidth - context.gutter() + \"px\";\n\t\t\t}).style(\"height\", function() {\n\t\t\t\treturn d.h * context.cellHeight - context.gutter() + \"px\";\n\t\t\t});\n\t\t\tcontext.dragItemPos = {\n\t\t\t\tx: d.x,\n\t\t\t\ty: d.y\n\t\t\t};\n\t\t}).on(\"drag\", function(_d) {\n\t\t\tif (!context.designMode()) return;\n\t\t\tconst event = d3Event();\n\t\t\tevent.sourceEvent.stopPropagation();\n\t\t\tconst d = context.itemsMap[_d.id()];\n\t\t\tconst pos = [Math.max(0, Math.round(event.x / context.cellWidth)), Math.max(0, Math.round(event.y / context.cellHeight))];\n\t\t\tconst size = {\n\t\t\t\tw: Math.max(1, pos[0] - d.x + 1),\n\t\t\t\th: Math.max(1, pos[1] - d.y + 1)\n\t\t\t};\n\t\t\tif (d.w !== size.w || d.h !== size.h) {\n\t\t\t\tif (context.snapping() !== \"none\") {\n\t\t\t\t\tcontext.resetItemsPos();\n\t\t\t\t\tcontext.gridList.resizeItem(d, size);\n\t\t\t\t} else {\n\t\t\t\t\td.w = size.w;\n\t\t\t\t\td.h = size.h;\n\t\t\t\t}\n\t\t\t\tif (_d.gridColSpan() !== d.w || _d.gridRowSpan() !== d.h) {\n\t\t\t\t\tcontext.items.forEach(context.gridItemToCell);\n\t\t\t\t\tcontext.updateGrid(d.id, 100);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcontext.dragItem.style(\"width\", function() {\n\t\t\t\treturn (-d.x + 1) * context.cellWidth + event.x - context.gutter() + \"px\";\n\t\t\t}).style(\"height\", function() {\n\t\t\t\treturn (-d.y + 1) * context.cellHeight + event.y - context.gutter() + \"px\";\n\t\t\t});\n\t\t}).on(\"end\", function() {\n\t\t\tif (!context.designMode()) return;\n\t\t\td3Event().sourceEvent.stopPropagation();\n\t\t\tcontext.dragItem.remove();\n\t\t\tcontext.dragItem = null;\n\t\t\tcontext.killGridList();\n\t\t});\n\t}\n\tupdateGrid(resize, transitionDuration = 0, _noRender = false) {\n\t\ttransitionDuration = transitionDuration || 0;\n\t\tconst context = this;\n\t\tthis.divItems.classed(\"draggable\", this.designMode()).transition().duration(transitionDuration).style(\"left\", function(d) {\n\t\t\treturn d.gridCol() * context.cellWidth + context.gutter() / 2 + \"px\";\n\t\t}).style(\"top\", function(d) {\n\t\t\treturn d.gridRow() * context.cellHeight + context.gutter() / 2 + \"px\";\n\t\t}).style(\"width\", function(d) {\n\t\t\treturn d.gridColSpan() * context.cellWidth - context.gutter() + \"px\";\n\t\t}).style(\"height\", function(d) {\n\t\t\treturn d.gridRowSpan() * context.cellHeight - context.gutter() + \"px\";\n\t\t}).on(\"end\", function(d) {\n\t\t\td.surfaceShadow_default(context.surfaceShadow()).surfacePadding_default(context.surfacePadding()).surfaceBorderWidth_default(context.surfaceBorderWidth()).surfaceBackgroundColor_default(context.surfaceBackgroundColor());\n\t\t\tif (resize === true || resize === d.id()) d.resize().lazyRender();\n\t\t});\n\t}\n\tupdate(domNode, element2) {\n\t\tsuper.update(domNode, element2);\n\t\tthis._placeholderElement.style(\"overflow-x\", this.fitTo() === \"width\" ? \"hidden\" : null);\n\t\tthis._placeholderElement.style(\"overflow-y\", this.fitTo() === \"width\" ? \"scroll\" : null);\n\t\tconst dimensions = this.getDimensions();\n\t\tthis.cellWidth = (this.width() - (this.fitTo() === \"width\" ? this._scrollBarWidth : 0)) / dimensions.width;\n\t\tthis.cellHeight = this.fitTo() === \"all\" ? this.height() / dimensions.height : this.cellWidth;\n\t\tif (this.designMode()) {\n\t\t\tconst cellLaneRatio = Math.min(this.width() / this.snappingColumns(), this.height() / this.snappingRows());\n\t\t\tthis.cellWidth = Math.floor(cellLaneRatio);\n\t\t\tthis.cellHeight = this.cellWidth;\n\t\t}\n\t\tconst context = this;\n\t\tconst divItems = element2.selectAll(\"#\" + this.id() + \" > .ddCell\").data(this.content(), function(d) {\n\t\t\treturn d.id();\n\t\t});\n\t\tthis.divItems = divItems.enter().append(\"div\").attr(\"class\", \"ddCell\").each(function(d) {\n\t\t\td.target(this);\n\t\t\td.__grid_watch = d.monitor(function(key, newVal, oldVal) {\n\t\t\t\tif (context._renderCount && (key === \"snapping\" || key.indexOf(\"grid\") === 0) && newVal !== oldVal) {\n\t\t\t\t\tif (!context.gridList) {\n\t\t\t\t\t\tcontext.initGridList();\n\t\t\t\t\t\tif (context.snapping() !== \"none\") context.gridList.resizeGrid(context.snapping() === \"horizontal\" ? context.snappingRows() : context.snappingColumns());\n\t\t\t\t\t\tcontext.items.forEach(context.gridItemToCell);\n\t\t\t\t\t\tcontext.updateGrid(d.id(), 100);\n\t\t\t\t\t\tcontext.killGridList();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tselect(this).append(\"div\").attr(\"class\", \"resizeHandle\").call(context._d3DragResize).append(\"div\").attr(\"class\", \"resizeHandleDisplay\");\n\t\t}).merge(divItems);\n\t\tthis.divItems.each(function(d) {\n\t\t\tconst element = select(this);\n\t\t\tif (context.designMode()) element.call(context._d3Drag);\n\t\t\telse element.on(\"mousedown.drag\", null).on(\"touchstart.drag\", null);\n\t\t});\n\t\tthis.divItems.select(\".resizeHandle\").style(\"display\", this.designMode() ? null : \"none\");\n\t\tthis.updateGrid(true);\n\t\tdivItems.exit().each(function(d) {\n\t\t\td.target(null);\n\t\t\tif (d.__grid_watch) d.__grid_watch.remove();\n\t\t}).remove();\n\t\tconst lanesBackground = element2.selectAll(\"#\" + this.id() + \" > .laneBackground\").data(this.designMode() ? [\"\"] : []);\n\t\tlanesBackground.enter().insert(\"div\", \":first-child\").attr(\"class\", \"laneBackground\").style(\"left\", \"1px\").style(\"top\", \"1px\").on(\"click\", function() {\n\t\t\tcontext.selectionBagClear();\n\t\t}).merge(lanesBackground).style(\"width\", this.snappingColumns() * this.cellWidth + \"px\").style(\"height\", this.snappingRows() * this.cellHeight + \"px\");\n\t\tlanesBackground.exit().each(function() {\n\t\t\tcontext.selectionBagClear();\n\t\t}).remove();\n\t\tconst lanes = element2.selectAll(\"#\" + this.id() + \" > .lane\").data(this.designMode() ? [\"\"] : []);\n\t\tlanes.enter().append(\"div\").attr(\"class\", \"lane\").style(\"left\", \"1px\").style(\"top\", \"1px\");\n\t\tlanes.style(\"display\", this.showLanes() ? null : \"none\").style(\"width\", this.snappingColumns() * this.cellWidth + \"px\").style(\"height\", this.snappingRows() * this.cellHeight + \"px\").style(\"background-image\", \"linear-gradient(to right, grey 1px, transparent 1px), linear-gradient(to bottom, grey 1px, transparent 1px)\").style(\"background-size\", this.cellWidth + \"px \" + this.cellHeight + \"px\");\n\t\tlanes.exit().remove();\n\t}\n\texit(domNode, element) {\n\t\tthis.content().forEach((w) => w.target(null));\n\t\tsuper.exit(domNode, element);\n\t}\n\t_createSelectionObject(d) {\n\t\treturn {\n\t\t\t_id: d._id,\n\t\t\telement: () => {\n\t\t\t\treturn d._element;\n\t\t\t},\n\t\t\twidget: d\n\t\t};\n\t}\n\tselection(_) {\n\t\tif (!arguments.length) return this._selectionBag.get().map(function(d) {\n\t\t\treturn d._id;\n\t\t});\n\t\tthis._selectionBag.set(_.map(function(row) {\n\t\t\treturn this._createSelectionObject(row);\n\t\t}, this));\n\t\treturn this;\n\t}\n\tselectionBagClear() {\n\t\tif (!this._selectionBag.isEmpty()) {\n\t\t\tthis._selectionBag.clear();\n\t\t\tthis.postSelectionChange();\n\t\t}\n\t}\n\tselectionBagClick(d) {\n\t\tif (d !== null) {\n\t\t\tconst selectionObj = this._createSelectionObject(d);\n\t\t\tif (d3Event().sourceEvent.ctrlKey) if (this._selectionBag.isSelected(selectionObj)) {\n\t\t\t\tthis._selectionBag.remove(selectionObj);\n\t\t\t\tthis.postSelectionChange();\n\t\t\t} else {\n\t\t\t\tthis._selectionBag.append(selectionObj);\n\t\t\t\tthis.postSelectionChange();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tconst selected = this._selectionBag.get();\n\t\t\t\tif (selected.length === 1 && selected[0]._id === selectionObj._id) this.selectionBagClear();\n\t\t\t\telse this._selectionBag.set([selectionObj]);\n\t\t\t\tthis.postSelectionChange();\n\t\t\t}\n\t\t}\n\t}\n\tpostSelectionChange() {}\n\tapplyLayout(layoutArr) {\n\t\tthis.divItems.each((d, i) => {\n\t\t\tif (layoutArr[i]) {\n\t\t\t\tconst [x, y, w, h] = layoutArr[i];\n\t\t\t\td.gridCol(x).gridRow(y).gridColSpan(w).gridRowSpan(h);\n\t\t\t}\n\t\t});\n\t\tthis.updateGrid(true);\n\t}\n\tvizActivation(elem) {}\n};\nGrid.prototype._class += \" layout_Grid\";\nGrid.prototype.publish(\"designMode\", false, \"boolean\", \"Design Mode\", null, { tags: [\"Basic\"] });\nGrid.prototype.publish(\"showLanes\", true, \"boolean\", \"Show snapping lanes when in design mode\", null, {\n\ttags: [\"Basic\"],\n\tdisable: (w) => !w.designMode()\n});\nGrid.prototype.publish(\"fitTo\", \"all\", \"set\", \"Sizing Strategy\", [\"all\", \"width\"], { tags: [\"Basic\"] });\nGrid.prototype.publish(\"snapping\", \"vertical\", \"set\", \"Snapping Strategy\", [\n\t\"vertical\",\n\t\"horizontal\",\n\t\"none\"\n]);\nGrid.prototype.publish(\"snappingColumns\", 12, \"number\", \"Snapping Columns\");\nGrid.prototype.publish(\"snappingRows\", 16, \"number\", \"Snapping Rows\");\nGrid.prototype.publish(\"gutter\", 6, \"number\", \"Gap Between Widgets\", null, { tags: [\"Basic\"] });\nGrid.prototype.publish(\"surfaceShadow\", true, \"boolean\", \"3D Shadow\");\nGrid.prototype.publish(\"surfacePadding\", null, \"string\", \"Cell Padding (px)\", null, { tags: [\"Intermediate\"] });\nGrid.prototype.publish(\"surfaceBorderWidth\", 1, \"number\", \"Width (px) of Cell Border\", null, { tags: [\"Intermediate\"] });\nGrid.prototype.publish(\"surfaceBackgroundColor\", null, \"html-color\", \"Surface Background Color\", null, { tags: [\"Advanced\"] });\nGrid.prototype.publish(\"content\", [], \"widgetArray\", \"widgets\", null, {\n\ttags: [\"Basic\"],\n\trender: false\n});\n\n//#endregion\n//#region src/HorizontalList.ts\nvar HorizontalList = class extends FlexGrid {\n\tconstructor() {\n\t\tsuper();\n\t\tthis.orientation_default(\"horizontal\");\n\t\tthis.flexWrap_default(\"nowrap\");\n\t}\n};\nHorizontalList.prototype._class += \" layout_HorizontalList\";\n\n//#endregion\n//#region src/Layered.ts\nvar Layered = class extends HTMLWidget {\n\t_contentContainer;\n\t_widgetPlacements;\n\t_widgetRatios;\n\tconstructor() {\n\t\tsuper();\n\t\tthis._tag = \"div\";\n\t\tthis._widgetPlacements = [];\n\t\tthis._widgetRatios = [];\n\t}\n\taddLayer(widget, placement = \"default\", widthRatio = 1, heightRatio = 1) {\n\t\tconst widgets = this.widgets();\n\t\twidgets.push(widget ? widget : new Text().text(\"No widget defined for layer.\"));\n\t\tthis.widgets(widgets);\n\t\tthis._widgetPlacements.push(placement);\n\t\tthis._widgetRatios.push([widthRatio, heightRatio]);\n\t\treturn this;\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tthis._contentContainer = element.append(\"div\").attr(\"class\", \"container\");\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t\tconst context = this;\n\t\telement.style(\"padding\", this.surfacePadding() + \"px\");\n\t\tconst content = this._contentContainer.selectAll(\".content.id\" + this.id()).data(this.widgets(), function(d) {\n\t\t\treturn d.id();\n\t\t});\n\t\tcontent.enter().append(\"div\").attr(\"class\", \"content id\" + this.id()).each(function(widget, idx) {\n\t\t\twidget.target(this);\n\t\t}).merge(content).each(function(widget, idx) {\n\t\t\tconst clientSize = {\n\t\t\t\twidth: context.clientWidth(),\n\t\t\t\theight: context.clientHeight()\n\t\t\t};\n\t\t\tconst widgetSize = context.widgetSize(idx, clientSize);\n\t\t\tconst widgetPosition = context.widgetPosition(idx, clientSize, widgetSize);\n\t\t\tthis.style.top = widgetPosition.y + \"px\";\n\t\t\tthis.style.left = widgetPosition.x + \"px\";\n\t\t\twidget.resize(widgetSize).render();\n\t\t});\n\t\tcontent.exit().each(function(widget, idx) {\n\t\t\twidget.target(null);\n\t\t}).remove();\n\t\tcontent.order();\n\t}\n\twidgetSize(idx, clientSize) {\n\t\tif (this._widgetPlacements[idx] === \"default\") return {\n\t\t\twidth: clientSize.width * this._widgetRatios[idx][0],\n\t\t\theight: clientSize.height * this._widgetRatios[idx][1]\n\t\t};\n\t\telse return {\n\t\t\twidth: clientSize.width * this._widgetRatios[idx][0],\n\t\t\theight: clientSize.height * this._widgetRatios[idx][1]\n\t\t};\n\t}\n\twidgetPosition(idx, clientSize, widgetSize) {\n\t\tswitch (this._widgetPlacements[idx]) {\n\t\t\tdefault: return {\n\t\t\t\tx: 0,\n\t\t\t\ty: 0\n\t\t\t};\n\t\t\tcase \"top\": return {\n\t\t\t\tx: clientSize.width / 2 - widgetSize.width / 2,\n\t\t\t\ty: 0\n\t\t\t};\n\t\t\tcase \"bottom\": return {\n\t\t\t\tx: clientSize.width / 2 - widgetSize.width / 2,\n\t\t\t\ty: clientSize.height - widgetSize.height\n\t\t\t};\n\t\t\tcase \"left\": return {\n\t\t\t\tx: 0,\n\t\t\t\ty: clientSize.height / 2 - widgetSize.height / 2\n\t\t\t};\n\t\t\tcase \"right\": return {\n\t\t\t\tx: clientSize.width - widgetSize.width,\n\t\t\t\ty: clientSize.height / 2 - widgetSize.height / 2\n\t\t\t};\n\t\t\tcase \"center\": return {\n\t\t\t\tx: clientSize.width / 2 - widgetSize.width / 2,\n\t\t\t\ty: clientSize.height / 2 - widgetSize.height / 2\n\t\t\t};\n\t\t}\n\t}\n};\nLayered.prototype._class += \" layout_Layered\";\nLayered.prototype.publish(\"surfacePadding\", 0, \"number\", \"Padding\");\nLayered.prototype.publish(\"widgets\", [], \"widgetArray\", \"widgets\", null, { tags: [\"Private\"] });\n\n//#endregion\n//#region src/Popup.ts\nvar Popup = class extends HTMLWidget {\n\t_surfaceButtons;\n\t_originalPosition;\n\tconstructor() {\n\t\tsuper();\n\t\tthis._tag = \"div\";\n\t\tthis._surfaceButtons = [];\n\t}\n\tupdateState(visible) {\n\t\tvisible = visible || !this.popupState();\n\t\tthis.popupState(visible).render();\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tthis.widget().target(domNode);\n\t\tthis._originalPosition = this.position();\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t\telement.style(\"visibility\", this.popupState() ? null : \"hidden\").style(\"opacity\", this.popupState() ? null : 0).style(\"width\", this.shrinkWrap() ? this.widget().width() + \"px\" : this._size.width + \"px\").style(\"height\", this.shrinkWrap() ? this.widget().height() + \"px\" : this._size.height + \"px\");\n\t\tif (this.widget().size().height === 0) this.widget().resize(this.size());\n\t}\n\tpostUpdate(domNode, element) {\n\t\tlet left;\n\t\tlet top;\n\t\tswitch (this.centerPopup()) {\n\t\t\tcase \"container\":\n\t\t\t\tif (this._placeholderElement) {\n\t\t\t\t\tleft = parseInt(this._placeholderElement.style(\"width\")) / 2 - this.widget().width() / 2;\n\t\t\t\t\ttop = parseInt(this._placeholderElement.style(\"height\")) / 2 - this.widget().height() / 2;\n\t\t\t\t}\n\t\t\t\tthis.position(\"absolute\");\n\t\t\t\tbreak;\n\t\t\tcase \"window\":\n\t\t\t\tleft = window.innerWidth / 2 - this.widget().width() / 2;\n\t\t\t\ttop = window.innerHeight / 2 - this.widget().height() / 2;\n\t\t\t\tthis.position(\"fixed\");\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tleft = 0;\n\t\t\t\ttop = 0;\n\t\t\t\tthis.position(this._originalPosition);\n\t\t\t\tbreak;\n\t\t}\n\t\tthis.pos({\n\t\t\tx: left,\n\t\t\ty: top\n\t\t});\n\t\tsuper.postUpdate(domNode, element);\n\t\telement.style(\"position\", this.position()).style(\"left\", this.left() + \"px\").style(\"right\", this.right() + \"px\").style(\"top\", this.top() + \"px\").style(\"bottom\", this.bottom() + \"px\");\n\t}\n\texit(domNode, element) {\n\t\tif (this.widget()) this.widget().target(null);\n\t\tsuper.exit(domNode, element);\n\t}\n\tclick(obj) {}\n};\nPopup.prototype._class += \" layout_Popup\";\nPopup.prototype.publish(\"popupState\", false, \"boolean\", \"State of the popup, visible (true) or hidden (false)\", null, {});\nPopup.prototype.publish(\"shrinkWrap\", false, \"boolean\", \"The popup parent container either shrinks to the size of its contents (true) or expands to fit thge popup's parentDiv (false)\", null, {});\nPopup.prototype.publish(\"centerPopup\", \"none\", \"set\", \"Center the widget in its container element (target) or in the window\", [\n\t\"none\",\n\t\"container\",\n\t\"window\"\n], {});\nPopup.prototype.publish(\"top\", null, \"number\", \"Top position property of popup\", null, {});\nPopup.prototype.publish(\"bottom\", null, \"number\", \"Bottom position property of popup\", null, {});\nPopup.prototype.publish(\"left\", null, \"number\", \"Left position property of popup\", null, {});\nPopup.prototype.publish(\"right\", null, \"number\", \"Right position property of popup\", null, {});\nPopup.prototype.publish(\"position\", \"relative\", \"set\", \"Value of the 'position' property\", [\n\t\"absolute\",\n\t\"relative\",\n\t\"fixed\",\n\t\"static\",\n\t\"initial\",\n\t\"inherit\"\n], { tags: [\"Private\"] });\nPopup.prototype.publish(\"widget\", null, \"widget\", \"Widget\", null, { tags: [\"Private\"] });\n\n//#endregion\n//#region src/Tabbed.ts\nvar Tabbed = class extends HTMLWidget {\n\t_tabContainer;\n\t_contentContainer;\n\tconstructor() {\n\t\tsuper();\n\t\tthis._tag = \"div\";\n\t}\n\tclearTabs() {\n\t\tthis.labels([]);\n\t\tthis.widgets([]);\n\t\treturn this;\n\t}\n\taddTab(widget, label, isActive, callback) {\n\t\tconst widgetSize = widget.size();\n\t\tif (widgetSize.width === 0 && widgetSize.height === 0) widget.size({\n\t\t\twidth: \"100%\",\n\t\t\theight: \"100%\"\n\t\t});\n\t\tconst labels = this.labels();\n\t\tconst widgets = this.widgets();\n\t\tif (isActive) this.activeTabIdx(this.widgets().length);\n\t\tlabels.push(label);\n\t\tconst surface = new Surface().widget(widget ? widget : new Text().text(\"No widget defined for tab\"));\n\t\twidgets.push(surface);\n\t\tthis.labels(labels);\n\t\tthis.widgets(widgets);\n\t\tif (callback) callback(surface);\n\t\treturn this;\n\t}\n\twidgetSize(widgetDiv) {\n\t\tconst width = this.clientWidth();\n\t\tlet height = this.clientHeight();\n\t\tconst tcBox = this._tabContainer.node().getBoundingClientRect();\n\t\tif (typeof tcBox.height !== \"undefined\") height -= tcBox.height;\n\t\treturn {\n\t\t\twidth,\n\t\t\theight\n\t\t};\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tthis._tabContainer = element.append(\"div\");\n\t\tthis._contentContainer = element.append(\"div\");\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t\tconst context = this;\n\t\telement.style(\"padding\", this.surfacePadding_exists() ? this.surfacePadding() + \"px\" : null);\n\t\tconst tabs = this._tabContainer.selectAll(\".tab-button.id\" + this.id()).data(this.showTabs() ? this.labels() : [], function(d) {\n\t\t\treturn d;\n\t\t});\n\t\ttabs.enter().append(\"span\").attr(\"class\", \"tab-button id\" + this.id()).style(\"cursor\", \"pointer\").on(\"click\", function(d, idx) {\n\t\t\tcontext.click(context.widgets()[idx].widget(), d, idx);\n\t\t\tcontext.activeTabIdx(idx).render();\n\t\t}).merge(tabs).classed(\"active\", function(d, idx) {\n\t\t\treturn context.activeTabIdx() === idx;\n\t\t}).text(function(d) {\n\t\t\treturn d;\n\t\t});\n\t\ttabs.exit().remove();\n\t\tconst content = this._contentContainer.selectAll(\".tab-content.id\" + this.id()).data(this.widgets(), function(d) {\n\t\t\treturn d.id();\n\t\t});\n\t\tcontent.enter().append(\"div\").attr(\"class\", \"tab-content id\" + this.id()).each(function(widget, idx) {\n\t\t\twidget.target(this);\n\t\t}).merge(content).classed(\"active\", function(d, idx) {\n\t\t\treturn context.activeTabIdx() === idx;\n\t\t}).style(\"display\", function(d, idx) {\n\t\t\treturn context.activeTabIdx() === idx ? \"block\" : \"none\";\n\t\t}).each(function(surface, idx) {\n\t\t\tsurface.visible(context.activeTabIdx() === idx);\n\t\t\tif (context.activeTabIdx() === idx) {\n\t\t\t\tconst wSize = context.widgetSize(select(this));\n\t\t\t\tsurface.surfaceBorderWidth(context.showTabs() ? null : 0).surfacePadding(context.showTabs() ? null : 0).resize(wSize);\n\t\t\t}\n\t\t});\n\t\tcontent.exit().each(function(widget, idx) {\n\t\t\twidget.target(null);\n\t\t}).remove();\n\t\tswitch (this.tabLocation()) {\n\t\t\tcase \"bottom\":\n\t\t\t\tthis._tabContainer.attr(\"class\", \"on_bottom\").style(\"top\", this._contentContainer.node().offsetHeight + this.surfacePadding() + \"px\").style(\"position\", \"absolute\");\n\t\t\t\tthis._contentContainer.style(\"top\", this.surfacePadding_exists() ? this.surfacePadding() + \"px\" : null).style(\"position\", \"absolute\");\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthis._tabContainer.attr(\"class\", \"on_top\").style(\"top\", null).style(\"position\", \"relative\");\n\t\t\t\tthis._contentContainer.style(\"top\", this._tabContainer.node().offsetHeight + this.surfacePadding() + \"px\").style(\"position\", \"absolute\");\n\t\t\t\tbreak;\n\t\t}\n\t}\n\tclick(widget, column, idx) {}\n};\nTabbed.prototype._class += \" layout_Tabbed\";\nTabbed.prototype.publish(\"showTabs\", true, \"boolean\", \"Show Tabs\", null, {});\nTabbed.prototype.publish(\"surfacePadding\", 4, \"number\", \"Padding\");\nTabbed.prototype.publish(\"activeTabIdx\", 0, \"number\", \"Index of active tab\", null, {});\nTabbed.prototype.publish(\"labels\", [], \"array\", \"Array of tab labels sharing an index with \", null, { tags: [\"Private\"] });\nTabbed.prototype.publish(\"tabLocation\", \"top\", \"set\", \"Position the tabs at the bottom of the widget\", [\"top\", \"bottom\"], { tags: [\"Private\"] });\nTabbed.prototype.publish(\"widgets\", [], \"widgetArray\", \"widgets\", null, { tags: [\"Private\"] });\n\n//#endregion\n//#region src/Toolbar.ts\nvar Toolbar = class extends HTMLWidget {\n\tconstructor() {\n\t\tsuper();\n\t\tthis._tag = \"div\";\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t\tconst context = this;\n\t\telement.attr(\"title\", context.title()).style(\"background-color\", this.backgroundColor());\n\t\tconst title = element.selectAll(\"div.toolbar-title\").data(this.title() ? [this.title()] : []);\n\t\ttitle.enter().append(\"div\").classed(\"toolbar-title\", true).append(\"span\");\n\t\ttitle.selectAll(\"div.toolbar-title > span\").style(\"font-size\", this.fontSize_exists() ? this.fontSize() + \"px\" : null).style(\"color\", this.fontColor_exists() ? this.fontColor() : null).style(\"font-family\", this.fontFamily_exists() ? this.fontFamily() : null).style(\"font-weight\", this.fontBold_exists() ? this.fontBold() ? \"bold\" : \"normal\" : null).style(\"background-color\", this.backgroundColor_exists() ? this.backgroundColor() : null).text(context.title());\n\t\ttitle.exit().remove();\n\t\tconst childWidgets = element.selectAll(\"div.toolbar-child\").data(this.widgets() !== null ? this.widgets() : [], function(d) {\n\t\t\treturn d.id();\n\t\t});\n\t\tchildWidgets.enter().insert(\"div\", \"div.toolbar-title\").each(function(d, i) {\n\t\t\tconst widgetClass = context.widgetClasses()[i] ? context.widgetClasses()[i] + \" toolbar-child\" : \"toolbar-child\";\n\t\t\tselect(this).classed(widgetClass, true);\n\t\t\td.target(this);\n\t\t});\n\t\tchildWidgets.exit().each(function(d) {\n\t\t\td.target(null);\n\t\t}).remove();\n\t\tchildWidgets.order();\n\t}\n\trender(callback) {\n\t\tconst context = this;\n\t\treturn super.render(function(w) {\n\t\t\tconst toolbarBBox = context.element().node().getBoundingClientRect();\n\t\t\tlet minX = toolbarBBox.left + toolbarBBox.width;\n\t\t\tcontext.element().selectAll(\"div.toolbar-child\").each(function(d, i) {\n\t\t\t\tconst childBBox = this.getBoundingClientRect();\n\t\t\t\tif (minX > childBBox.left) minX = childBBox.left;\n\t\t\t});\n\t\t\tcontext.element().select(\".toolbar-title\").style(\"width\", minX - toolbarBBox.left - 4 + \"px\");\n\t\t\tif (callback) callback(w);\n\t\t});\n\t}\n\texit(domNode, element) {\n\t\tthis.widgets().forEach(function(w) {\n\t\t\tw.target(null);\n\t\t});\n\t\tsuper.exit(domNode, element);\n\t}\n};\nToolbar.prototype._class += \" layout_Toolbar\";\nToolbar.prototype.publish(\"title\", \"\", \"string\", \"Title\", null, { tags: [\"Intermediate\"] });\nToolbar.prototype.publish(\"fontSize\", null, \"number\", \"Title Font Size (px)\", null, {\n\ttags: [\"Advanced\"],\n\toptional: true\n});\nToolbar.prototype.publish(\"fontColor\", null, \"html-color\", \"Title Font Color\", null, {\n\ttags: [\"Advanced\"],\n\toptional: true\n});\nToolbar.prototype.publish(\"fontFamily\", null, \"string\", \"Title Font Family\", null, {\n\ttags: [\"Advanced\"],\n\toptional: true\n});\nToolbar.prototype.publish(\"fontBold\", true, \"boolean\", \"Enable Bold Title Font\", null, {\n\ttags: [\"Advanced\"],\n\toptional: true\n});\nToolbar.prototype.publish(\"backgroundColor\", null, \"html-color\", \"Background Color\", null, {\n\ttags: [\"Intermediate\"],\n\toptional: true\n});\nToolbar.prototype.publish(\"responsive\", true, \"boolean\", \"Adapts to pixel width\", null, { tags: [\"Basic\"] });\nToolbar.prototype.publish(\"widgets\", [], \"widgetArray\", \"Child widgets of the toolbar\", null, { tags: [\"Basic\"] });\nToolbar.prototype.publish(\"widgetClasses\", [], \"array\", \"Array of Html Element classes to be assigned to the child widgets (shares index with widgets param)\", null, { tags: [\"Basic\"] });\n\n//#endregion\n//#region src/VerticalList.ts\nvar VerticalList = class extends FlexGrid {\n\tconstructor() {\n\t\tsuper();\n\t\tthis.orientation_default(\"vertical\");\n\t\tthis.flexWrap_default(\"nowrap\");\n\t}\n};\nVerticalList.prototype._class += \" layout_VerticalList\";\n\n//#endregion\nexport { AbsoluteSurface, Accordion, BUILD_VERSION, Border, Border2, Carousel, Cell, ChartPanel, FlexGrid, Grid, HorizontalList, Layered, Legend, Modal, PKG_NAME, PKG_VERSION, Popup, Surface, Tabbed, Toolbar, VerticalList, WidgetDiv };\n//# sourceMappingURL=index.js.map!function(){try{if(\"undefined\"!=typeof document){var o=document.createElement(\"style\");o.appendChild(document.createTextNode('.layout_AbsoluteSurface{pointer-events:none!important}.layout_AbsoluteSurface>.placeholder{pointer-events:all;position:relative;overflow:hidden}.layout_Accordion>ul{position:relative}.layout_Accordion.open>span{font-style:italic}.layout_Accordion.closed>ul{height:0;overflow:hidden}.layout_Accordion.open>ul{display:block}.layout_Accordion>.collapsible-icon,.layout_Accordion>.collapsible-title{cursor:pointer;box-sizing:border-box}.layout_Accordion>.collapsible-title{color:#fff;width:100%;height:26px;padding:4px 8px;font-size:13px;display:block;box-shadow:inset 0 -1px 1px #0003}.layout_Accordion li{background-color:#fff}.layout_Accordion>ul,.layout_Accordion>.collapsible-title{background-color:#333}.layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion>.collapsible-title{background-color:#555}.layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#777}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#999}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#bbb}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#ccc}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#ddd}.layout_Accordion>ul,.layout_Accordion>span{padding-left:0}.layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion>span{padding-left:12px}.layout_Accordion>.collapsible-title:before{padding:4px 8px;position:absolute;top:0;left:0}.layout_Accordion>.collapsible-icon{color:#fff;width:24px;height:24px;position:absolute;top:0;right:0}.layout_Surface{box-sizing:border-box;border:1px solid #e5e5e5;width:100%;height:100%;margin:0;overflow:hidden}.layout_Surface.shadow2{box-shadow:0 2px 2px #00000024,0 3px 1px -2px #0003,0 1px 5px #0000001f}.layout_Surface>h3{background-color:#e5e5e5;margin:0;padding:2px}.layout_Surface .html-button-container{position:absolute;top:3px;right:0}.layout_Surface>div{padding:8px}.layout_Surface .html-button-container .surface-button{margin-right:5px}.layout_Surface .html-button-container .surface-button i{opacity:.8}.layout_Surface .html-button-container .surface-button:hover{opacity:1}.layout_Surface .html-button-container .surface-button:active{opacity:.5}div[draggable=true].hideDragCellContent.content-icon:before{content:\"\";font-family:FontAwesome;font-size:100px;position:absolute;top:calc(50% - 74px);left:calc(50% - 56px)}div[draggable=true].hideDragCellContent.content-icon-Line:before{content:\"\"}div[draggable=true].hideDragCellContent.content-icon-Pie:before{content:\"\";top:calc(50% - 72px);left:calc(50% - 45px)}div[draggable=true].hideDragCellContent.content-icon-Area:before{content:\"\"}div[draggable=true].hideDragCellContent.content-icon-Gauge:before{content:\"\"}div[draggable=true].hideDragCellContent.content-icon-Table:before{content:\"\"}div[draggable=true].hideDragCellContent.content-icon-Form:before{content:\"\"}div[draggable=true].hideDragCellContent.content-icon-Grid:before,div[draggable=true].hideDragCellContent.content-icon-Graph:before,div[draggable=true].hideDragCellContent.content-icon-Border:before,div[draggable=true].hideDragCellContent.content-icon-Tabbed:before,div[draggable=true].hideDragCellContent.content-icon-Accordion:before,div[draggable=true].hideDragCellContent.content-icon-MultiChart:before,div[draggable=true].hideDragCellContent.content-icon-MultiChartSurface:before{content:\"\"}div[draggable=true].hideDragCellContent.content-icon-ChoroplethStates:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethStatesHeat:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethCounties:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethCountries:before,div[draggable=true].hideDragCellContent.content-icon-GMap:before,div[draggable=true].hideDragCellContent.content-icon-GMapHeat:before,div[draggable=true].hideDragCellContent.content-icon-GMapGraph:before,div[draggable=true].hideDragCellContent.content-icon-Text:before,div[draggable=true].hideDragCellContent.content-icon-TextBox:before,div[draggable=true].hideDragCellContent.content-icon-FAChar:before{content:\"\"}.layout_Cell .update-indicator{box-sizing:border-box;z-index:1000;pointer-events:none;border-style:solid;border-width:0;padding:0;position:absolute;top:0;left:0}.layout_Border{width:100%;height:100%}.layout_Border>.border-content{width:100%;height:100%;position:relative}.layout_Border>.borderHandle{opacity:.3;visibility:hidden;background-color:#444;width:6px;height:6px;position:absolute}.layout_Border.design-mode>.borderHandle{visibility:visible}.layout_Border>.borderHandle:hover{background-color:#666}.layout_Border>.borderHandle.borderHandleDisabled{display:none}.layout_Border>.borderHandle_top,.layout_Border>.borderHandle_bottom{cursor:ns-resize}.layout_Border>.borderHandle_left,.layout_Border>.borderHandle_right{cursor:ew-resize}.layout_Border .cell{border:1px solid #e5e5e5;border-radius:5px;display:inline-block;overflow:hidden}.layout_Border .cell h2{-webkit-margin:0px;text-align:center;margin:0;padding-top:4px}.layout_Border .layout_BorderCell.over{border:2px dashed #000}.layout_Border .dragItem{z-index:-1;opacity:.33}.layout_Border .notDragItem{z-index:-1;opacity:1}.layout_Border div[draggable=true]{opacity:.75;cursor:default}.layout_Border div[draggable=true] .dragHandle{opacity:1}.layout_Border div[draggable=true] .dragHandle_n,.layout_Border div[draggable=true] .dragHandle_e,.layout_Border div[draggable=true] .dragHandle_s,.layout_Border div[draggable=true] .dragHandle_w{background-color:#aaa}.layout_Border div[draggable=true] .dragHandle_nw,.layout_Border div[draggable=true] .dragHandle_ne,.layout_Border div[draggable=true] .dragHandle_se,.layout_Border div[draggable=true] .dragHandle_sw{background-color:#333}.layout_Border div[draggable=true] .dragHandle_nw{cursor:nw-resize}.layout_Border div[draggable=true] .dragHandle_n{cursor:n-resize}.layout_Border div[draggable=true] .dragHandle_ne{cursor:ne-resize}.layout_Border div[draggable=true] .dragHandle_e{cursor:e-resize}.layout_Border div[draggable=true] .dragHandle_se{cursor:se-resize}.layout_Border div[draggable=true] .dragHandle_s{cursor:s-resize}.layout_Border div[draggable=true] .dragHandle_sw{cursor:sw-resize}.layout_Border div[draggable=true] .dragHandle_w{cursor:w-resize}.layout_Border div[draggable=false]>div>.dragHandle{display:none}.layout_Border .grid-drop-target{box-sizing:border-box;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6464641a 4px 8px);border:2px dashed #7f8c8d;border-radius:0;position:fixed}.layout_Border .grid-drop-target.drop-target-over{background:repeating-linear-gradient(-45deg,#0000,#0000 6px,#119bd71a 6px 12px);border:2px dashed #179bd7}.layout_Border2{flex-direction:column;display:flex}.layout_Border2>.body{flex-flow:row;margin:0;padding:0;display:flex}.layout_Border2>.body>.center{flex:1}.layout_Border2>.header,.layout_Border2>.footer{display:block}.layout_Carousel>div{position:relative;overflow:hidden}.layout_Carousel>div>.carouselItem{position:absolute}.layout_Modal-header{background-color:#3f51b5;overflow:hidden}.layout_Modal-body{background-color:#fff;overflow:hidden scroll}.layout_Modal-title,.layout_Modal-annotations{position:absolute}.layout_Modal-closeButton{cursor:pointer}.layout_Modal-closeButton:hover{opacity:.7}.layout_Modal-closeButton:active{opacity:.5}.layout_Modal-fade{opacity:.5;z-index:10000;background-color:#000;position:fixed}.layout_Modal-content{z-index:10100;background-color:#fff;position:fixed}.layout_Modal-fade-hidden{display:none}.layout_Modal-fadeClickable{cursor:pointer}.layout_ChartPanel .series.highlight{stroke-width:2px;opacity:1}.layout_ChartPanel .series.lowlight{opacity:.3!important}.layout_FlexGrid{display:flex}.FlexGrid-list-item{border-style:solid;flex-grow:1;overflow:hidden}.layout_Grid>.ddCell{position:absolute}.layout_Grid>.laneBackground{background:#f5f5f5;border-style:solid;border-width:1px;position:absolute}.layout_Grid>.lane{opacity:.25;pointer-events:none;border-style:none;border-radius:0;position:absolute}.layout_Grid>.ddCell.draggable{cursor:move;background-color:#f8f8ff;border-style:solid;border-width:1px;border-radius:0}.layout_Grid>.ddCell.draggable>.resizeHandle{cursor:nwse-resize;border-style:none;width:8px;height:8px;position:absolute;bottom:0;right:0}.layout_Grid>.ddCell.draggable .resizeHandleDisplay{background-color:none;border:2px solid #a9a9a9;border-width:0 2px 2px 0;width:4px;height:4px;position:absolute;bottom:2px;right:2px}.layout_Grid>.ddCell.draggable .resizeHandleDisplay:hover{border-color:orange}.layout_Grid>.dragging{background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6464641a 4px 8px);border:1px solid gray;border-radius:0;position:absolute}.layout_Grid>.resizing{opacity:.3;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,orange 4px 8px);border:1px solid gray;border-radius:0;position:absolute}.layout_Grid>.ddCell.draggable .common_Widget.selected{background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6400001a 4px 8px);border:1px solid red;border-radius:0;position:absolute}.layout_Grid #drag-me:before{content:\"#\" attr(id);font-weight:700}.layout_Layered{pointer-events:none}.layout_Layered>.container>.content{position:absolute}.layout_Layered>.container>.content>div>.common_Widget,.layout_Layered>.container>.content>div>svg>.common_Widget{pointer-events:all}.layout_Tabbed .tab-button{background-color:#ccc;border-top:1px solid #ddd;border-left:1px solid #ddd;border-right:1px solid #ddd;margin-right:4px;padding:2px 2px 4px;display:inline-block;position:relative;top:1px}.layout_Tabbed .tab-button.active{z-index:999;background-color:#fff}.layout_Tabbed .on_bottom .tab-button{border-top:none;border-bottom:1px solid #ddd;top:-1px}.layout_Toolbar{white-space:nowrap;background-color:#ddd;height:100%;overflow:hidden}.layout_Toolbar .toolbar-title{text-overflow:ellipsis;white-space:nowrap;margin-left:4px;font-weight:700;display:inline-block;position:relative;top:50%;overflow:hidden;transform:translateY(-50%)}.layout_Toolbar .toolbar-child{float:right;margin-left:4px;margin-right:4px;line-height:16px;position:relative;top:50%;transform:translateY(-50%)}\\n/*$vite$:1*/')),document.head.appendChild(o)}}catch(e){console.error(\"vite-plugin-css-injected-by-js\",e)}}();","import { Utility } from \"@hpcc-js/common\";\n\ndeclare const require: any;\nexport function requireWidget(classID) {\n return new Promise(function (resolve, _reject) {\n const parsedClassID = Utility.parseClassID(classID);\n if (require) {\n require([parsedClassID.package], function (Package) {\n let Widget = null;\n if (Package && Package[parsedClassID.widgetID]) {\n Widget = Package[parsedClassID.widgetID];\n }\n resolve(parsedClassID.memberWidgetID ? (Widget.prototype ? Widget.prototype[parsedClassID.memberWidgetID] : Widget[parsedClassID.memberWidgetID]) : Widget);\n });\n }\n });\n}\n\nexport function requireWidgets(classIDs) {\n return Promise.all(classIDs.map(requireWidget));\n}\n","import { IGraph, INDChart } from \"@hpcc-js/api\";\nimport { Database, HTMLWidget, Utility, Widget } from \"@hpcc-js/common\";\nimport { map as d3Map } from \"d3-collection\";\nimport { requireWidget } from \"./Utility.ts\";\n\ndeclare const require: any;\nexport class MultiChart extends HTMLWidget {\n _allCharts = {};\n _chartTypeDefaults;\n _chartTypeProperties;\n _chartMonitor;\n _switchingTo;\n\n constructor() {\n super();\n INDChart.call(this);\n IGraph.call(this);\n\n this._tag = \"div\";\n\n this._allCharts = {};\n this._allChartTypes.forEach(function (item) {\n const newItem = JSON.parse(JSON.stringify(item));\n newItem.widget = null;\n this._allCharts[item.id] = newItem;\n this._allCharts[item.display] = newItem;\n this._allCharts[item.widgetClass] = newItem;\n }, this);\n this._chartTypeDefaults = {};\n this._chartTypeProperties = {};\n }\n\n fields(): Database.Field[];\n fields(_: Database.Field[]): this;\n fields(_?: Database.Field[]): Database.Field[] | this {\n const retVal = super.fields.apply(this, arguments);\n if (this.chart()) {\n if (!arguments.length) return this.chart().fields();\n this.chart().fields(_);\n }\n return retVal;\n }\n\n columns(): string[];\n columns(_, asDefault?: boolean): this;\n columns(_?, asDefault?: boolean) {\n const retVal = HTMLWidget.prototype.columns.apply(this, arguments);\n if (this.chart()) {\n if (!arguments.length) return this.chart().columns();\n this.chart().columns(_, asDefault);\n }\n return retVal;\n }\n\n data(_?) {\n const retVal = HTMLWidget.prototype.data.apply(this, arguments);\n if (this.chart()) {\n if (!arguments.length) return this.chart().data();\n this.chart().data(_);\n }\n return retVal;\n }\n\n hasOverlay() {\n return this.chart() && this.chart().hasOverlay();\n }\n\n visible(): boolean;\n visible(_: boolean): this;\n visible(_?: boolean): boolean | this {\n if (!arguments.length) return this.chart() && this.chart().visible();\n if (this.chart()) {\n this.chart().visible(_);\n }\n return this;\n }\n\n chartTypeDefaults(): object;\n chartTypeDefaults(_: object): this;\n chartTypeDefaults(_?: object): object | this {\n if (!arguments.length) return this._chartTypeDefaults;\n this._chartTypeDefaults = _;\n return this;\n }\n\n chartTypeProperties(): object;\n chartTypeProperties(_: object): this;\n chartTypeProperties(_?: object): object | this {\n if (!arguments.length) return this._chartTypeProperties;\n this._chartTypeProperties = _;\n return this;\n }\n\n getChartDataFamily() {\n return this._allCharts[this.chartType()].family;\n }\n\n requireContent(chartType, callback) {\n const classInfo = Utility.parseClassID(this._allCharts[chartType].widgetClass);\n switch (classInfo.package) {\n case \"@hpcc-js/chart\":\n import(\"@hpcc-js/chart\").then(mod => {\n callback(new mod[classInfo.widgetID]());\n });\n break;\n case \"@hpcc-js/dgrid\":\n import(\"@hpcc-js/dgrid\").then(mod => {\n callback(new mod[classInfo.widgetID]());\n });\n break;\n default:\n requireWidget(this._allCharts[chartType].widgetClass).then(function (WidgetClass: any) {\n callback(new WidgetClass());\n });\n }\n }\n\n switchChart(callback) {\n if (this._switchingTo === this.chartType()) {\n if (callback) {\n callback(this);\n }\n return;\n } else if (this._switchingTo) {\n console.warn(\"Attempting switch to: \" + this.chartType() + \", before previous switch is complete (\" + this._switchingTo + \")\");\n }\n this._switchingTo = this.chartType();\n const oldContent = this.chart();\n const context = this;\n this.requireContent(this.chartType(), function (newContent) {\n if (newContent !== oldContent) {\n const size = context.size();\n newContent\n .fields(context.fields())\n .data(context.data())\n .size(size)\n ;\n\n context.chart(newContent);\n if (oldContent) {\n oldContent\n .size({ width: 1, height: 1 })\n .render()\n ;\n }\n }\n delete context._switchingTo;\n if (callback) {\n callback(this);\n }\n });\n }\n\n update(domNode, element) {\n super.update(domNode, element);\n const content = element.selectAll(\".multiChart\").data(this.chart() ? [this.chart()] : [], function (d) { return d._id; });\n content.enter().append(\"div\")\n .attr(\"class\", \"multiChart\")\n .each(function (d) {\n d.target(this);\n })\n ;\n\n const currChart = this.chart();\n if (currChart) {\n for (const key in this._chartTypeDefaults) {\n if (currChart[key + \"_default\"]) {\n try {\n currChart[key + \"_default\"](this._chartTypeDefaults[key]);\n } catch (e) {\n console.warn(\"Exception Setting Default: \" + key);\n }\n } else {\n console.warn(\"Unknown Default: \" + key);\n }\n }\n this._chartTypeDefaults = {};\n for (const propKey in this._chartTypeProperties) {\n if (currChart[propKey]) {\n try {\n currChart[propKey](this._chartTypeProperties[propKey]);\n } catch (e) {\n console.warn(\"Exception Setting Property: \" + propKey);\n }\n } else {\n console.warn(\"Unknown Property: \" + propKey);\n }\n }\n this._chartTypeProperties = {};\n }\n\n const context = this;\n content\n .each(function (d) { d.resize(context.size()); })\n ;\n\n content.exit().transition()\n .each(function (d) { d.target(null); })\n .remove()\n ;\n }\n\n exit(domNode, element) {\n if (this._chartMonitor) {\n this._chartMonitor.remove();\n delete this._chartMonitor;\n }\n if (this.chart()) {\n this.chart().target(null);\n }\n super.exit(domNode, element);\n }\n\n render(_callback?) {\n if (this.chartType() && (!this.chart() || (this.chart().classID() !== this._allCharts[this.chartType()].widgetClass))) {\n const context = this;\n const args = arguments;\n this.switchChart(function () {\n HTMLWidget.prototype.render.apply(context, args);\n });\n return this;\n }\n return HTMLWidget.prototype.render.apply(this, arguments);\n }\n}\nMultiChart.prototype._class += \" composite_MultiChart\";\nMultiChart.prototype.implements(INDChart.prototype);\nMultiChart.prototype.implements(IGraph.prototype);\nexport interface ChartMeta {\n id: string;\n display: string;\n widgetClass: string;\n widgetPath?: string;\n}\nexport interface MultiChart {\n _otherChartTypes: ChartMeta[];\n _graphChartTypes: ChartMeta[];\n _1DChartTypes: ChartMeta[];\n _2DChartTypes: ChartMeta[];\n _NDChartTypes: ChartMeta[];\n _mapChartTypes: ChartMeta[];\n _anyChartTypes: ChartMeta[];\n _allChartTypes: ChartMeta[];\n _allMap;\n _allFamilies: string[];\n _allChartTypesMap;\n _allChartTypesByClass;\n\n hideRowOnLegendClick(): boolean;\n hideRowOnLegendClick(_: boolean): this;\n chartType(): string;\n chartType(_: string): this;\n chart(): Widget;\n chart(_: Widget): this;\n chart_access(): Widget;\n chart_access(_: Widget): this;\n\n click(_row, _column, _selected): void;\n dblclick(_row, _column, _selected): void;\n vertex_click(row, column, selected, more): void;\n vertex_dblclick(row, column, selected, more): void;\n edge_click(row, column, selected, more): void;\n edge_dblclick(row, column, selected, more): void;\n}\n\nMultiChart.prototype._otherChartTypes = [\n { id: \"FORM\", display: \"Form\", widgetClass: \"form_FieldForm\" }\n].map(function (item: any) { item.family = \"other\"; return item; });\nMultiChart.prototype._graphChartTypes = [\n { id: \"GRAPH\", display: \"Graph\", widgetClass: \"graph_Graph\" },\n { id: \"ADJACENCY_GRAPH\", display: \"Graph\", widgetClass: \"graph_AdjacencyGraph\" },\n { id: \"GRAPHC\", display: \"GraphC\", widgetClass: \"graph_GraphC\" }\n].map(function (item: any) { item.family = \"GRAPH\"; return item; });\nMultiChart.prototype._1DChartTypes = [\n].map(function (item: any) { item.family = \"1D\"; return item; });\nMultiChart.prototype._2DChartTypes = [\n { id: \"SUMMARY\", display: \"Summary\", widgetClass: \"chart_Summary\" },\n { id: \"BUBBLE\", display: \"Bubble\", widgetClass: \"chart_Bubble\" },\n { id: \"PIE\", display: \"Pie\", widgetClass: \"chart_Pie\" },\n { id: \"WORD_CLOUD\", display: \"Word Cloud\", widgetClass: \"other_WordCloud\" }\n].map(function (item: any) { item.family = \"2D\"; return item; });\nMultiChart.prototype._NDChartTypes = [\n { id: \"COLUMN\", display: \"Column\", widgetClass: \"chart_Column\" },\n { id: \"BAR\", display: \"Bar\", widgetClass: \"chart_Bar\" },\n { id: \"LINE\", display: \"Line\", widgetClass: \"chart_Line\" },\n { id: \"AREA\", display: \"Area\", widgetClass: \"chart_Area\" },\n { id: \"STEP\", display: \"Step\", widgetClass: \"chart_Step\" },\n { id: \"SCATTER\", display: \"Scatter\", widgetClass: \"chart_Scatter\" },\n { id: \"HEXBIN\", display: \"Hex Bin\", widgetClass: \"chart_HexBin\" }\n].map(function (item: any) { item.family = \"ND\"; return item; });\nMultiChart.prototype._mapChartTypes = [\n { id: \"CHORO_USSTATES\", display: \"US State Choropleth\", widgetClass: \"map_ChoroplethStates\" },\n { id: \"CHORO_USCOUNTIES\", display: \"US County Choropleth\", widgetClass: \"map_ChoroplethCounties\" },\n { id: \"CHORO_COUNTRIES\", display: \"Country Choropleth\", widgetClass: \"map_ChoroplethCountries\" },\n { id: \"GMAP_CHORO_USCOUNTIES\", display: \"Google Map US County Choropleth\", widgetClass: \"map_GMapCounties\" },\n { id: \"GOOGLE_MAP\", display: \"Google Map\", widgetClass: \"map_GMapLayered\" },\n { id: \"OPENSTREET\", display: \"Open Street Map\", widgetClass: \"map_OpenStreet\" }\n].map(function (item: any) { item.family = \"map\"; return item; });\nMultiChart.prototype._anyChartTypes = [\n { id: \"TABLE\", display: \"Table\", widgetClass: \"dgrid_Table\" },\n { id: \"TABLE_LEGACY\", display: \"Table (legacy)\", widgetClass: \"other_Table\" },\n { id: \"TABLE_NESTED\", display: \"Nested Table\", widgetClass: \"other_NestedTable\" },\n { id: \"TABLE_CALENDAR\", display: \"Table driven Calendar Heat Map\", widgetClass: \"other_CalendarHeatMap\" },\n { id: \"TABLE_BULLET\", display: \"Table driven bullet chart\", widgetClass: \"chart_Bullet\" },\n { id: \"TABLE_SELECT\", display: \"Table driven select\", widgetClass: \"other_Select\" },\n { id: \"TABLE_AUTOCOMPLETE\", display: \"Table driven auto complete\", widgetClass: \"other_AutoCompleteText\" },\n { id: \"TABLE_OPPORTUNITY\", display: \"Table driven opportunity widget\", widgetClass: \"graph_Opportunity\" },\n { id: \"TABLE_TREE\", display: \"Table driven tree\", widgetClass: \"tree_Dendrogram\" },\n { id: \"TABLE_TREEMAP\", display: \"Table driven Treemap\", widgetClass: \"tree_Treemap\" },\n { id: \"TABLE_SANKEY\", display: \"Table driven Sankey\", widgetClass: \"graph_Sankey\" },\n { id: \"TABLE_GMAP_PIN\", display: \"Table driven Google Map (pins)\", widgetClass: \"map_GMapPin\" },\n { id: \"TABLE_GMAP_PINLINE\", display: \"Table driven Google Map (pins/lines)\", widgetClass: \"map_GMapPinLine\" },\n { id: \"TABLE_XML_TREE\", display: \"Table driven XML Tree\", widgetClass: \"tree_Indented\" }\n].map(function (item: any) { item.family = \"any\"; return item; });\nMultiChart.prototype._allChartTypes =\n MultiChart.prototype._otherChartTypes.concat(\n MultiChart.prototype._graphChartTypes.concat(\n MultiChart.prototype._1DChartTypes.concat(\n MultiChart.prototype._2DChartTypes.concat(\n MultiChart.prototype._NDChartTypes.concat(\n MultiChart.prototype._mapChartTypes.concat(\n MultiChart.prototype._anyChartTypes\n ))))));\nMultiChart.prototype._allMap = d3Map(MultiChart.prototype._allChartTypes, function (item: any) { return item.family; });\nMultiChart.prototype._allFamilies = MultiChart.prototype._allMap.keys();\nMultiChart.prototype._allChartTypesMap = {};\nMultiChart.prototype._allChartTypesByClass = {};\nMultiChart.prototype._allChartTypes.forEach(function (item) {\n item.widgetPath = Utility.widgetPath(item.widgetClass);\n MultiChart.prototype._allChartTypesMap[item.id] = item;\n MultiChart.prototype._allChartTypesByClass[item.widgetClass] = item;\n});\n\nMultiChart.prototype.publishReset();\nMultiChart.prototype.publish(\"hideRowOnLegendClick\", false, \"boolean\", \"Enable/Disable hiding row on legend clicks\", null, { tags: [\"Basic\"] });\nMultiChart.prototype.publish(\"chartType\", \"BUBBLE\", \"set\", \"Chart Type\", MultiChart.prototype._allChartTypes.map(function (item) { return item.id; }), { tags: [\"Basic\"] });\nMultiChart.prototype.publish(\"chart\", null, \"widget\", \"Chart\", null, { tags: [\"Basic\"] });\n\nconst _origChart = MultiChart.prototype.chart;\nMultiChart.prototype.chart = function (_?) {\n const retVal = _origChart.apply(this, arguments);\n if (arguments.length) {\n const context = this;\n if (this._allChartTypesByClass[_.classID()]) {\n this.chartType(this._allChartTypesByClass[_.classID()].id);\n } else {\n console.warn(\"Unknown Class ID: \" + _.classID());\n }\n _.click = function (_row, _column, _selected) {\n context.click.apply(context, arguments);\n };\n _.dblclick = function (_row, _column, _selected) {\n context.dblclick.apply(context, arguments);\n };\n _.vertex_click = function (row, column, selected, more) {\n context.vertex_click.apply(context, arguments);\n };\n _.vertex_dblclick = function (row, column, selected, more) {\n context.vertex_dblclick.apply(context, arguments);\n };\n _.edge_click = function (row, column, selected, more) {\n context.edge_click.apply(context, arguments);\n };\n _.edge_dblclick = function (row, column, selected, more) {\n context.edge_dblclick.apply(context, arguments);\n };\n if (this._chartMonitor) {\n this._chartMonitor.remove();\n delete this._chartMonitor;\n }\n this._chartMonitor = _.monitor(function (key, newVal, oldVal) {\n context.broadcast(key, newVal, oldVal, _);\n });\n }\n return retVal;\n};\n","import { HTMLWidget, Widget } from \"@hpcc-js/common\";\nimport { ChartPanel } from \"@hpcc-js/layout\";\nimport { MultiChart } from \"./MultiChart.ts\";\n\nimport \"../src/ChartPanel.css\";\n\nclass Summary extends HTMLWidget {\n\n constructor() {\n super();\n }\n\n enter(domNode, element) {\n super.enter(domNode, element);\n element.append(\"p\");\n }\n\n update(domNode, element) {\n super.update(domNode, element);\n element.select(\"p\").text(this.text());\n }\n}\ninterface Summary {\n text(): string;\n text(_: string): this;\n}\nSummary.prototype.publish(\"text\", \"\", \"string\");\n\nexport class MultiChartPanel extends ChartPanel<MultiChart> {\n\n constructor() {\n super();\n this.widget(new MultiChart().chartType(\"COLUMN\"));\n }\n\n multiChart(): MultiChart {\n return this._widget;\n }\n\n chartType(): string;\n chartType(_: string): this;\n chartType(_?: string): string | this {\n if (!arguments.length) return this._widget.chartType();\n this._widget.chartType(_);\n return this;\n }\n\n chart(): Widget;\n chart(_: Widget): this;\n chart(_?: Widget): Widget | this {\n if (!arguments.length) return this._widget.chart();\n this._widget.chart(_);\n return this;\n }\n\n chartTypeDefaults(): object;\n chartTypeDefaults(_: object): this;\n chartTypeDefaults(_?: object): this | object {\n if (!arguments.length) return this._widget.chartTypeDefaults();\n this._widget.chartTypeDefaults(_);\n return this;\n }\n\n chartTypeProperties(): object;\n chartTypeProperties(_: object): this;\n chartTypeProperties(_?: object): this | object {\n if (!arguments.length) return this._widget.chartTypeProperties();\n this._widget.chartTypeProperties(_);\n return this;\n }\n\n update(domNode, element) {\n super.update(domNode, element);\n if (this._widget instanceof MultiChart) {\n this._legend.dataFamily(this._widget.getChartDataFamily());\n }\n super.update(domNode, element);\n }\n}\nMultiChartPanel.prototype._class += \" composite_MultiChartPanel\";\n","import { OnOff } from \"@hpcc-js/form\";\nimport { Border, Toolbar } from \"@hpcc-js/layout\";\nimport { PropertyEditor } from \"@hpcc-js/other\";\n\nimport \"../src/Dermatology.css\";\n\nexport class Dermatology extends Border {\n _toolbar;\n _propEditor;\n _showProperties;\n _propsButton;\n _prevWidget;\n\n constructor() {\n super();\n\n this._toolbar = new Toolbar()\n .title(\"Dermatology\")\n ;\n this._propEditor = new PropertyEditor()\n .show_settings(true)\n ;\n }\n\n showProperties(_?) {\n if (!arguments.length) return this._showProperties;\n this._showProperties = _;\n this\n .rightPercentage(0)\n .rightSize(this._showProperties ? 360 : 0)\n .setContent(\"right\", this._showProperties ? this._propEditor : null)\n ;\n const widget = this.widget();\n if (widget && widget.designMode) {\n widget.designMode(this._showProperties);\n }\n return this;\n }\n\n toggleProperties() {\n return this.showProperties(!this.showProperties());\n }\n\n enter(domNode, element) {\n super.enter(domNode, element);\n\n this\n .topPercentage(0)\n .topSize(0)\n .setContent(\"top\", this._toolbar)\n ;\n this.getCell(\"top\").surfaceShadow(true);\n\n const context = this;\n this._propsButton = new OnOff()\n .id(this.id() + \"_props\")\n .value(\"Properties\")\n .on(\"click\", function () {\n context\n .toggleProperties()\n .render()\n ;\n })\n ;\n this._toolbar.widgets([this._propsButton]);\n }\n\n update(domNode, element) {\n this\n .topPercentage(0)\n .topSize(this.showToolbar() ? 32 : 0)\n ;\n\n super.update(domNode, element);\n\n const widget = this.widget();\n element.style(\"background-color\", widget && widget.surfaceShadow ? null : \"white\");\n }\n\n render(callback) {\n const widget = this.widget();\n if (widget !== this._prevWidget) {\n if (widget && widget.surfaceShadow) {\n widget.surfaceBackgroundColor_default(\"white\");\n }\n this.setContent(\"center\", widget);\n this._propEditor.widget(widget);\n this._prevWidget = widget;\n }\n return super.render(callback);\n }\n\n showToolbar: { (): boolean; (_: boolean): Dermatology };\n showToolbar_exists: () => boolean;\n widget: { (): any; (_: any): Dermatology };\n widget_exists: () => boolean;\n}\nDermatology.prototype._class += \" composite_Dermatology\";\n\nDermatology.prototype.publish(\"showToolbar\", true, \"boolean\", \"Show Toolbar\");\nDermatology.prototype.publish(\"widget\", null, \"widget\", \"Widget\");\n","import { Database, Text, Utility } from \"@hpcc-js/common\";\nimport { Button, Input, Select } from \"@hpcc-js/form\";\nimport { Border, Grid, Toolbar } from \"@hpcc-js/layout\";\nimport { Html, Legend } from \"@hpcc-js/other\";\nimport { select as d3Select } from \"d3-selection\";\nimport \"d3-transition\";\nimport { MultiChart } from \"./MultiChart.ts\";\n\nimport \"../src/MegaChart.css\";\n\nexport class MegaChart extends Border {\n _chart = new MultiChart();\n _toolbar = new Toolbar();\n _valueTitle = new Text();\n _domainTitle = new Text();\n _legend: Legend = new Legend();\n _csvButton;\n _infoButton;\n _maximizeButton;\n _legendButton;\n _chartTypeSelect;\n _prevLegendPosition;\n _prevShowToolbar;\n _1DChartTypes;\n _2DChartTypes;\n _NDChartTypes;\n _anyChartTypes;\n _allChartTypes;\n _contentClasses;\n _dataCount;\n\n constructor() {\n super();\n this._tag = \"div\";\n const context = this;\n this._chart.click = function () {\n context.click.apply(context, arguments);\n };\n this._chart.dblclick = function () {\n context.dblclick.apply(context, arguments);\n };\n this._chart.vertex_click = function () {\n context.vertex_click.apply(context, arguments);\n };\n this._chart.vertex_dblclick = function () {\n context.vertex_dblclick.apply(context, arguments);\n };\n this._chart.edge_click = function () {\n context.edge_click.apply(context, arguments);\n };\n this._chart.edge_dblclick = function () {\n context.edge_dblclick.apply(context, arguments);\n };\n }\n\n toolbarWidgets(_?) {\n if (!arguments.length) return this._toolbar.widgets();\n this._toolbar.widgets(_);\n return this;\n }\n\n chartTypeDefaults(_?) {\n if (!arguments.length) return this._chart.chartTypeDefaults();\n this._chart.chartTypeDefaults(_);\n return this;\n }\n\n chartTypeProperties(_?) {\n if (!arguments.length) return this._chart.chartTypeProperties();\n this._chart.chartTypeProperties(_);\n return this;\n }\n\n fields(): Database.Field[];\n fields(_: Database.Field[]): this;\n fields(_?: Database.Field[]): Database.Field[] | this {\n if (!arguments.length) return this._chart.fields();\n this._chart.fields(_);\n return this;\n }\n\n columns(): string[];\n columns(_: string[], asDefault?: boolean): this;\n columns(_?: string[], asDefault?: boolean): string[] | this {\n if (!arguments.length) return this._chart.columns();\n this._chart.columns(_, asDefault);\n return this;\n }\n\n data(_?) {\n if (!arguments.length) return this._chart.data();\n this._chart.data(_);\n return this;\n }\n\n downloadCSV() {\n Utility.downloadString(\"CSV\", this._chart.export(\"CSV\"));\n return this;\n }\n\n enter(domNode, element) {\n super.enter(domNode, element);\n const context = this;\n\n this.topShrinkWrap(false).topPercentage(0).topSize(30);\n this._dataCount = new Html()\n .classed({ \"composite_MegaChart-dataCount\": true })\n .id(this.id() + \"_dataCount\")\n .html('<span class=\"MegaChart-dataCount-label\">Count:</span> <span class=\"MegaChart-dataCount-value\">' + (this.data() ? this.data().length : \"0\") + \"</span>\")\n .overflowX(\"visible\")\n .overflowY(\"visible\")\n ;\n\n this._csvButton = new Button()\n .classed({ \"composite_MegaChart-CSV\": true })\n .id(this.id() + \"_csv\")\n .value(\"CSV\")\n ;\n this._csvButton.click = function (a) {\n context.downloadCSV();\n };\n\n this._infoButton = new Button()\n .classed({ \"composite_MegaChart-Info\": true })\n .id(this.id() + \"_info\")\n .value(this.infoIcon())\n ;\n\n this._maximizeButton = new Button()\n .classed({ \"composite_MegaChart-Maximize\": true })\n .id(this.id() + \"_maximize\")\n .value(\"\\uf2d0\")\n ;\n this._maximizeButton.click = function (buttonWidget) {\n const target = context.target() as any;\n let node = target;\n const isMaximized = d3Select(target).classed(\"__hpccisMaximized\");\n\n // Find the layout_Grid ancestor\n const parentGrid = context.locateAncestor(\"layout_Grid\");\n if (parentGrid) {\n node = parentGrid.element().node();\n } else {\n node = document.body;\n }\n\n const targetElement = d3Select(context.target()) as any;\n if (isMaximized) {\n // Restore from maximized to natural size/position\n const targetParentBox = target.parentElement.getBoundingClientRect();\n const targetPaddingTop = parseInt(getComputedStyle(target, null).getPropertyValue(\"padding-top\").replace(\"px\", \"\"));\n const targetPaddingLeft = parseInt(getComputedStyle(target, null).getPropertyValue(\"padding-left\").replace(\"px\", \"\"));\n const targetPaddingRight = parseInt(getComputedStyle(target, null).getPropertyValue(\"padding-right\").replace(\"px\", \"\"));\n const targetPaddingBottom = parseInt(getComputedStyle(target, null).getPropertyValue(\"padding-bottom\").replace(\"px\", \"\"));\n context.contentDiv.style(\"opacity\", 0).transition(100);\n targetElement.transition()// .duration(3000)\n .style(\"top\", targetParentBox.top + \"px\")\n .style(\"left\", targetParentBox.left + \"px\")\n .style(\"width\", (targetParentBox.width - targetPaddingLeft - targetPaddingRight) + \"px\")\n .style(\"height\", (targetParentBox.height - targetPaddingTop - targetPaddingBottom) + \"px\")\n .each(\"end\", function () {\n targetElement.style(\"position\", target.__old_position);\n targetElement.style(\"z-index\", target.__old_zindex);\n targetElement.style(\"background-color\", target.__old_backgroundColor);\n targetElement.style(\"box-shadow\", target.__old_boxshadow);\n context\n .resize({\n width: targetParentBox.width - targetPaddingLeft - targetPaddingRight,\n height: targetParentBox.height - targetPaddingTop - targetPaddingBottom\n })\n .render(function () {\n context.contentDiv.transition()\n .style(\"opacity\", 1);\n });\n buttonWidget.value(\"\\uf2d0\").render();\n });\n } else {\n // Maximize this MegaChart\n target.__old_position = target.style.position;\n target.__old_zindex = target.style.zIndex;\n target.__old_boxshadow = target.style.boxShadow;\n target.__old_backgroundColor = context.element().style(\"background-color\");\n const grid = d3Select(node).datum() as Grid;\n const gridTarget = grid.target();\n const gridBox = grid ? gridTarget.getBoundingClientRect() : node.getBoundingClientRect();\n const gridPaddingTop = parseInt(getComputedStyle(gridTarget, null).getPropertyValue(\"padding-top\").replace(\"px\", \"\"));\n const gridPaddingLeft = parseInt(getComputedStyle(gridTarget, null).getPropertyValue(\"padding-left\").replace(\"px\", \"\"));\n const gridPaddingRight = parseInt(getComputedStyle(gridTarget, null).getPropertyValue(\"padding-right\").replace(\"px\", \"\"));\n const gridPaddingBottom = parseInt(getComputedStyle(gridTarget, null).getPropertyValue(\"padding-bottom\").replace(\"px\", \"\"));\n context.contentDiv.style(\"opacity\", 0).transition(100);\n targetElement\n .style(\"position\", \"fixed\")\n .style(\"z-index\", 999999)\n .style(\"box-shadow\", \"0 8px 8px 0 rgba(0,0,0,.14),0 12px 4px -8px rgba(0,0,0,.2),0 4px 20px 0 rgba(0,0,0,.12)\")\n .style(\"background-color\", target.__old_backgroundColor)\n .transition()// .duration(3000)\n .style(\"top\", (gridBox.top + gridPaddingTop) + \"px\")\n .style(\"left\", (gridBox.left + gridPaddingLeft) + \"px\")\n .style(\"width\", (gridBox.width - gridPaddingLeft - gridPaddingRight) + \"px\")\n .style(\"height\", (gridBox.height - gridPaddingTop - gridPaddingBottom) + \"px\")\n .each(\"end\", function () {\n targetElement.style(\"background-color\", context.maximizedBackgroundColor());\n context\n .resize({\n width: (gridBox.width - gridPaddingLeft - gridPaddingRight),\n height: (gridBox.height - gridPaddingTop - gridPaddingBottom)\n })\n .render(function () {\n context.contentDiv.transition()\n .style(\"opacity\", 1);\n });\n buttonWidget.value(\"\\uf2d1\").render();\n });\n }\n\n d3Select(target).classed(\"__hpccisMaximized\", !isMaximized);\n };\n\n this._legendButton = new Input()\n .classed({ \"composite_MegaChart-legend\": true })\n .id(this.id() + \"_legend\")\n .type(\"checkbox\")\n .inlineLabel(\"Legend: \")\n ;\n this._legendButton.click = function (a) {\n context.render();\n };\n\n this._chartTypeSelect = new Select()\n .classed({ \"composite_MegaChart-chartType\": true })\n .id(this.id() + \"_chartType\")\n .selectOptions(this._allChartTypes.map(function (a) { return [a.id, a.display]; }))\n .value(this.chartType())\n ;\n this._chartTypeSelect.change = function (a) {\n context.chartType(a.value()).render();\n };\n\n this.setContent(\"center\", this._chart);\n\n this._legend\n .targetWidget(this._chart)\n .orientation([\"top\", \"bottom\"].indexOf(this.legendPosition()) !== -1 ? \"horizontal\" : \"vertical\")\n .fixedSize(true)\n ;\n\n this._prevLegendPosition = this.legendPosition();\n\n if (this.valueAxisTitle()) {\n this.setContent(\"left\", this._valueTitle.rotation(-90)).leftShrinkWrap(true);\n }\n if (this.domainAxisTitle()) {\n this.setContent(\"bottom\", this._domainTitle).bottomShrinkWrap(true);\n }\n\n if (this.legendPosition() !== \"none\") {\n this.setContent(this.legendPosition(), this._legend)[this.legendPosition() + \"ShrinkWrap\"](true);\n }\n }\n\n update(domNode, element) {\n function showHideButton(twArr2, button, show) {\n if (show && twArr2.indexOf(button) === -1) {\n twArr2.push(button);\n } else if (!show) {\n const idx = twArr2.indexOf(button);\n if (idx >= 0) {\n twArr2.splice(idx, 1);\n }\n }\n }\n\n if (this._chart && typeof this._chart.hideRowOnLegendClick === \"function\") {\n this._chart.hideRowOnLegendClick(this.hideRowOnLegendClick());\n }\n\n this._dataCount.html('<span class=\"MegaChart-dataCount-label\">Count:</span> <span class=\"MegaChart-dataCount-value\">' + (this.data() ? this.data().length : \"0\") + \"</span>\");\n\n this._chartTypeSelect.value(this.chartType());\n const twArr = this.toolbarWidgets();\n showHideButton(twArr, this._csvButton, this.showCSV());\n showHideButton(twArr, this._maximizeButton, this.showMaximize());\n showHideButton(twArr, this._legendButton, this.toolbarShowLegend());\n showHideButton(twArr, this._chartTypeSelect, this.showChartSelect());\n showHideButton(twArr, this._infoButton, this.showInfoButton());\n showHideButton(twArr, this._dataCount, this.showCount());\n this.toolbarWidgets(twArr);\n\n if (this._prevShowToolbar !== this.showToolbar()) {\n this.setContent(\"top\", this.showToolbar() ? this._toolbar : null);\n this._prevShowToolbar = this.showToolbar();\n }\n\n // TODO: Proxy + themes not working...\n this._toolbar\n .fontSize(this.titleFontSize())\n .fontColor(this.titleFontColor())\n .fontFamily(this.titleFontFamily())\n .fontBold(this.titleFontBold())\n .backgroundColor(this.titleBackgroundColor())\n ;\n\n this._chart\n .data(this.data());\n\n if (this._chart.chartType() !== this.chartType()) {\n this._chart.chartType(this.chartType());\n }\n\n let legendPosition = this.legendPosition();\n if (this.toolbarShowLegend() && !this._legendButton.checked()) {\n legendPosition = \"none\";\n }\n if (this._prevLegendPosition !== legendPosition) {\n if (this._prevLegendPosition !== \"none\") {\n this.clearContent(this._prevLegendPosition);\n }\n this._prevLegendPosition = legendPosition;\n if (legendPosition !== \"none\") {\n this._legend = new Legend().targetWidget(this.getContent(\"center\").fixedSize(true));\n this.setContent(legendPosition, this._legend);\n this._legend.orientation([\"top\", \"bottom\"].indexOf(legendPosition) !== -1 ? \"horizontal\" : \"vertical\");\n }\n }\n this._contentClasses = this.getContentClasses();\n\n if (this.valueAxisTitle() && this._contentClasses.left !== \"common_Text\") {\n if (legendPosition !== \"left\") {\n this.setContent(\"left\", this._valueTitle.rotation(-90));\n }\n }\n if (this.domainAxisTitle() && this._contentClasses.bottom !== \"common_Text\") {\n if (legendPosition !== \"bottom\") {\n this.setContent(\"bottom\", this._domainTitle).bottomShrinkWrap(true);\n }\n }\n\n this._legend.dataFamily(this._chart.getChartDataFamily());\n\n super.update(domNode, element);\n }\n\n exit(domNode, element) {\n super.exit(domNode, element);\n }\n\n getContentClasses() {\n const obj: any = {};\n const t = this.getContent(\"top\");\n const r = this.getContent(\"right\");\n const b = this.getContent(\"bottom\");\n const l = this.getContent(\"left\");\n obj.top = t !== null ? t.classID() : undefined;\n obj.right = r !== null ? r.classID() : undefined;\n obj.bottom = b !== null ? b.classID() : undefined;\n obj.left = l !== null ? l.classID() : undefined;\n return obj;\n }\n\n serializeState() {\n const state: any = {\n title: this.title(),\n data: this.data()\n };\n const chart = this.chart();\n if (chart) {\n if (chart.serializeState) {\n state.chart = chart.serializeState();\n delete state.chart.data;\n }\n }\n return state;\n }\n\n deserializeState(state) {\n if (state) {\n this\n .title(state.title)\n .data(state.data)\n ;\n const chart = this.chart();\n if (chart && state.chart) {\n if (chart.serializeState) {\n chart.deserializeState(state.chart);\n }\n }\n }\n return this;\n }\n\n // Events ---\n click(row, column, selected) {\n }\n\n dblclick(row, column, selected) {\n }\n vertex_click(row, col, sel, more) {\n if (more && more.vertex) {\n // console.log(\"Vertex click: \" + more.vertex.id());\n }\n }\n\n vertex_dblclick(row, col, sel, more) {\n if (more && more.vertex) {\n // console.log(\"Vertex double click: \" + more.vertex.id());\n }\n }\n\n edge_click(row, col, sel, more) {\n if (more && more.edge) {\n // console.log(\"Edge click: \" + more.edge.id());\n }\n }\n\n edge_dblclick(row, col, sel, more) {\n if (more && more.edge) {\n // console.log(\"Edge double click: \" + more.edge.id());\n }\n }\n\n hideRowOnLegendClick: { (): boolean; (_: boolean): MegaChart };\n hideRowOnLegendClick_exists: () => boolean;\n showToolbar: { (): boolean; (_: boolean): MegaChart };\n showToolbar_exists: () => boolean;\n titleFontSize: { (): number; (_: number): MegaChart };\n titleFontSize_exists: () => boolean;\n titleFontColor: { (): string; (_: string): MegaChart };\n titleFontColor_exists: () => boolean;\n titleFontFamily: { (): string; (_: string): MegaChart };\n titleFontFamily_exists: () => boolean;\n titleFontBold: { (): boolean; (_: boolean): MegaChart };\n titleFontBold_exists: () => boolean;\n titleBackgroundColor: { (): string; (_: string): MegaChart };\n titleBackgroundColor_exists: () => boolean;\n maximizedBackgroundColor: { (): string; (_: string): MegaChart };\n maximizedBackgroundColor_exists: () => boolean;\n showChartSelect: { (): boolean; (_: boolean): MegaChart };\n showChartSelect_exists: () => boolean;\n showCSV: { (): boolean; (_: boolean): MegaChart };\n showCSV_exists: () => boolean;\n showCount: { (): boolean; (_: boolean): MegaChart };\n showCount_exists: () => boolean;\n showMaximize: { (): boolean; (_: boolean): MegaChart };\n showMaximize_exists: () => boolean;\n toolbarShowLegend: { (): boolean; (_: boolean): MegaChart };\n toolbarShowLegend_exists: () => boolean;\n showInfoButton: { (): boolean; (_: boolean): MegaChart };\n showInfoButton_exists: () => boolean;\n infoIcon: { (): string; (_: string): MegaChart };\n infoIcon_exists: () => boolean;\n legendPosition: { (): string; (_: string): MegaChart };\n legendPosition_exists: () => boolean;\n\n title: { (): string; (_: string): MegaChart };\n title_exists: () => boolean;\n\n domainAxisTitle: { (): string; (_: string): MegaChart };\n domainAxisTitle_exists: () => boolean;\n valueAxisTitle: { (): string; (_: string): MegaChart };\n valueAxisTitle_exists: () => boolean;\n\n chartType: { (): string; (_: string): MegaChart };\n chartType_exists: () => boolean;\n chart: { (): any; (_: any): MegaChart };\n chart_exists: () => boolean;\n}\nMegaChart.prototype._class += \" composite_MegaChart\";\n\nMegaChart.prototype._1DChartTypes = MultiChart.prototype._1DChartTypes;\nMegaChart.prototype._2DChartTypes = MultiChart.prototype._2DChartTypes;\nMegaChart.prototype._NDChartTypes = MultiChart.prototype._NDChartTypes;\nMegaChart.prototype._anyChartTypes = MultiChart.prototype._anyChartTypes;\nMegaChart.prototype._allChartTypes = MultiChart.prototype._allChartTypes;\n\nMegaChart.prototype.publishReset();\n\nMegaChart.prototype.publish(\"hideRowOnLegendClick\", false, \"boolean\", \"Enable/Disable hiding row on legend clicks\", null, { tags: [\"Basic\"] });\nMegaChart.prototype.publish(\"showToolbar\", true, \"boolean\", \"Enable/Disable Toolbar widget\", null, { tags: [\"Basic\"] });\nMegaChart.prototype.publishProxy(\"title\", \"_toolbar\", \"title\");\nMegaChart.prototype.publish(\"ddlParamsFormat\", \"\", \"string\", \"DDL Param Format '{fname}, {lname}'\", null, { tags: [\"Advanced\"], optional: true });\nMegaChart.prototype.publish(\"titleFontSize\", null, \"number\", \"Title Font Size (px)\", null, { tags: [\"Advanced\"], optional: true });\nMegaChart.prototype.publish(\"titleFontColor\", null, \"html-color\", \"Title Font Color\", null, { tags: [\"Advanced\"], optional: true });\nMegaChart.prototype.publish(\"titleFontFamily\", null, \"string\", \"Title Font Family\", null, { tags: [\"Advanced\"], optional: true });\nMegaChart.prototype.publish(\"titleFontBold\", true, \"boolean\", \"Enable Bold Title Font\", null, { tags: [\"Advanced\"], optional: true });\nMegaChart.prototype.publish(\"titleBackgroundColor\", null, \"html-color\", \"Background Color\", null, { tags: [\"Intermediate\"], optional: true });\nMegaChart.prototype.publish(\"maximizedBackgroundColor\", \"#FFFFFF\", \"html-color\", \"Background Color while maximized\", null, { tags: [\"Intermediate\"], optional: true });\n\nMegaChart.prototype.publish(\"showChartSelect\", true, \"boolean\", \"Show/Hide the chartType dropdown in the toolbar\", null, { tags: [\"Basic\"] });\nMegaChart.prototype.publish(\"showCSV\", true, \"boolean\", \"Show/Hide CSV button\", null, { tags: [\"Basic\"] });\nMegaChart.prototype.publish(\"showCount\", false, \"boolean\", \"Show/Hide Data Count\", null, { tags: [\"Basic\"] });\nMegaChart.prototype.publish(\"showMaximize\", false, \"boolean\", \"Show/Hide Maximize button\", null, { tags: [\"Basic\"] });\nMegaChart.prototype.publish(\"toolbarShowLegend\", false, \"boolean\", \"Show/Hide Legend button\", null, { tags: [\"Basic\"] });\nMegaChart.prototype.publish(\"showInfoButton\", false, \"boolean\", \"Show/Hide Info button in toolbar\", null, { tags: [\"Basic\"] });\nMegaChart.prototype.publish(\"infoIcon\", \"\\uf05a\", \"string\", \"Help Icon\", null, { tags: [\"Basic\"] });\n\nMegaChart.prototype.publish(\"legendPosition\", \"none\", \"set\", \"Position of the Legend widget\", [\"none\", \"top\", \"right\", \"bottom\", \"left\"], { tags: [\"Basic\"] });\nMegaChart.prototype.publishProxy(\"legendFormat\", \"_legend\", \"rainbowFormat\");\nMegaChart.prototype.publishProxy(\"legendBins\", \"_legend\", \"rainbowBins\");\n\nMegaChart.prototype.publishProxy(\"domainAxisTitle\", \"_domainTitle\", \"text\");\nMegaChart.prototype.publishProxy(\"valueAxisTitle\", \"_valueTitle\", \"text\");\n\nMegaChart.prototype.publishProxy(\"chartType\", \"_chart\", \"chartType\");\nMegaChart.prototype.publishProxy(\"chart\", \"_chart\", \"chart\");\n","import { Platform, Utility, Widget } from \"@hpcc-js/common\";\nimport { Persist } from \"@hpcc-js/other\";\nimport { requireWidget } from \"./Utility.ts\";\n\nexport function retrofit_114_serialization(state, replacement_version) {\n replacement_version = !replacement_version || replacement_version === \"1.14.2-dev\" ? \"1.18.0\" : replacement_version;\n if (!state.__version) return state;\n const state_version_obj = Utility.parseVersionString(state.__version);\n const target_version_obj = Utility.parseVersionString(replacement_version);\n if (state_version_obj.major === 1 && state_version_obj.minor === 14) {\n console.info(\"Upgrading old persist from \" + state.__version + \" to \" + replacement_version);\n let _json_str = JSON.stringify(state);\n _json_str = _json_str.split('\"' + state.__version).join('\"' + replacement_version);\n\n const ret_obj = JSON.parse(_json_str);\n if (ret_obj.__properties && ret_obj.__properties.content) {\n ret_obj.__properties.content.forEach(function (n) {// FOR EACH top tier layout_Cell\n if (JSON.stringify(n).split(\"graph_Graph\").length > 1 && target_version_obj.minor >= 16) {\n n.__properties.widget.__id = n.__properties.widget.__properties.widget.__id;\n n.__properties.widget.__class = \"composite_MegaChart\";\n n.__properties.widget.__properties.showCSV = false;\n n.__properties.widget.__properties.chartType = \"GRAPH\";\n n.__properties.widget.__properties.chart = n.__properties.widget.__properties.widget;\n delete n.__properties.widget.__properties.chart.__id;\n delete n.__properties.widget.__properties.widget;\n }\n if (\"undefined\" === typeof n.__properties.fields) {\n n.__properties.fields = [];\n }\n });\n }\n return ret_obj;\n } else {\n return state;\n }\n}\n\nexport function deserializeFromObject(widget, state) {\n const promises = [];\n Persist.widgetPropertyWalker(widget, null, (w, item) => {\n w[item.id + \"_reset\"]();\n if (state.__properties[item.id] !== undefined) {\n switch (item.type) {\n case \"widget\":\n const widgetKey = item.id;\n promises.push(create(state.__properties[item.id]).then((w2: any) => {\n w2._owner = w;\n w[widgetKey](w2);\n return w2;\n }));\n break;\n case \"widgetArray\":\n case \"propertyArray\":\n const widgetArrayKey = item.id;\n const widgetStateArray = state.__properties[item.id];\n if (widgetStateArray.length) {\n const arrPromises = [];\n for (const widgetState of widgetStateArray) {\n arrPromises.push(create(widgetState).then((widgetItem: any) => {\n widgetItem._owner = w;\n return widgetItem;\n }));\n }\n promises.push(Promise.all(arrPromises).then(widgetArray => {\n w[widgetArrayKey](widgetArray);\n }));\n }\n break;\n default:\n w[item.id](state.__properties[item.id]);\n break;\n }\n }\n });\n return Promise.all(promises).then(widgets => {\n if (state.__data) {\n for (const key in state.__data) {\n if (state.__data.HasOwnProperty(key)) {\n switch (key) {\n case \"data\":\n widget.data(state.__data[key]);\n break;\n default:\n console.warn(\"Unexpected __data item: \" + key);\n widget[key](state.__data[key]);\n break;\n }\n }\n }\n }\n if (state.__state) {\n if (widget.deserializeState) {\n widget.deserializeState(state.__state);\n } else if (state.__state.data && widget.data) {\n widget.data(state.__state.data);\n }\n }\n return widget;\n });\n}\n\nexport function deserialize(widget, state) {\n if (typeof state === \"string\") {\n state = JSON.parse(state);\n }\n if (state.__id && state.__id.indexOf(widget._idSeed) !== 0 && widget._id !== state.__id) {\n console.warn(\"Deserialize: IDs do not match - \" + widget._id);\n }\n deserializeFromObject(widget, state);\n}\n\nexport function create(state: any): Promise<Widget> {\n if (typeof state === \"string\") {\n state = JSON.parse(state);\n }\n state = retrofit_114_serialization(state, Platform.version());\n return requireWidget(state.__class).then((WidgetClass: any) => {\n const widget = new WidgetClass();\n if (state.__id && state.__id.indexOf(widget._idSeed) !== 0 && state.__id.indexOf(\"_pe\") !== 0) {\n widget._id = state.__id;\n }\n return deserializeFromObject(widget, state);\n }).catch(function (e) {\n console.error(\"Persist.create: ***exception***\");\n console.error(e);\n });\n}\n\nexport function clone(widget) {\n create(Persist.serializeToObject(widget, undefined, true, true));\n}\n"],"mappings":"mnCCKA,IAAI,EAAW,OAAO,OAClB,EAAY,OAAO,eACnB,EAAmB,OAAO,yBAC1B,EAAoB,OAAO,oBAC3B,EAAe,OAAO,eACtB,EAAe,OAAO,UAAU,eAChC,EAAA,CAAc,EAAI,IAAQ,WAC7B,OAAO,IAAA,EAAW,EAAG,EAAkB,GAAI,MAAM,EAAM,CAAE,QAAS,CAAA,IAAM,QAAS,GAAM,EAAI,SAYxF,EAAA,CAAW,EAAK,EAAY,KAAY,EAAgB,MAAP,EAAc,EAAS,EAAa,IAAQ,CAAA,EAV7F,EAAe,EAAI,EAAM,EAAQ,KACpC,GAAI,GAAwB,iBAAT,GAAqC,mBAAT,EAAqB,IAAK,IAA4D,EAAxD,EAAO,EAAkB,GAAO,EAAI,EAAG,EAAI,EAAK,OAAa,EAAI,EAAG,IAChJ,EAAM,EAAK,GACN,EAAa,KAAK,EAAI,IAAQ,IAAQ,GAAQ,EAAU,EAAI,EAAK,CACrE,KAAO,GAAQ,EAAK,IAAM,KAAK,KAAM,GACrC,aAAc,EAAO,EAAiB,EAAM,KAAS,EAAK,aAG5D,OAAO,GAE6F,EAAY,GAAe,GAAQ,EAAI,WAGvI,EAHoJ,EAAU,EAAQ,UAAW,CACrL,MAAO,EACP,YAAY,IACA,IAUT,EAAkB,cAAcA,EAAAA,WACnC,WAAA,GACC,QACA,KAAK,KAAO,MAEb,KAAA,CAAM,EAAS,GACd,MAAM,MAAM,EAAS,GAEtB,MAAA,CAAO,EAAS,GACf,MAAM,OAAO,EAAS,GACtB,IAAI,EAAO,EACP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I,EAInB,OAHI,EAAM,MAA+C,IAAvC,EAAM,KAAK,QAAQ,EAAO,UAAgD,IAA9B,EAAM,KAAK,QAAQ,SAC7E,EAAO,IAAM,EAAM,MAEhB,GAAsB,EAAQ,KACtC,MAAM,SAAU,GACf,QAAQ,MAAM,oCACd,QAAQ,MAAM,KAItB,SAAgB,GAAM,GAClB,GAAO,EAAA,QAAQ,kBAAkB,OAAQ,GAAW,GAAM,oBP/HjC,wFAFL,mCACG"}
|
|
1
|
+
{"version":3,"file":"index.umd.cjs","names":["HTMLWidget","FAChar","Utility","Platform","Legend","SVGWidget","Database","Palette","ProgressBar","ToggleButton","Text","Button","Spacer","TitleBar","Table","IconBar","exports","obj: any","state: any"],"sources":["../src/__package__.ts","../../layout/dist/index.js","../src/Utility.ts","../src/MultiChart.ts","../src/ChartPanel.ts","../src/Dermatology.ts","../src/MegaChart.ts","../src/Persist.ts"],"sourcesContent":["export const PKG_NAME = \"__PACKAGE_NAME__\";\nexport const PKG_VERSION = \"__PACKAGE_VERSION__\";\nexport const BUILD_VERSION = \"__BUILD_VERSION__\";\n","import { Button, Database, FAChar, HTMLWidget, IconBar, Palette, Platform, ProgressBar, SVGWidget, Spacer, Text, TitleBar, ToggleButton, Utility, d3Event, dispatch, drag, format, formatLocale, formatPrefix, formatSpecifier, scaleLinear, scaleOrdinal, select, selectAll, sum } from \"@hpcc-js/common\";\nimport { Table } from \"@hpcc-js/dgrid\";\nimport { instanceOfIHighlight } from \"@hpcc-js/api\";\n\n//#region rolldown:runtime\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __commonJS = (cb, mod) => function() {\n\treturn mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {\n\t\tkey = keys[i];\n\t\tif (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: ((k$1) => from[k$1]).bind(null, key),\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", {\n\tvalue: mod,\n\tenumerable: true\n}) : target, mod));\n\n//#endregion\n//#region src/__package__.ts\nconst PKG_NAME = \"@hpcc-js/layout\";\nconst PKG_VERSION = \"3.4.0\";\nconst BUILD_VERSION = \"3.15.0\";\n\n//#endregion\n//#region src/AbsoluteSurface.ts\nvar AbsoluteSurface = class extends HTMLWidget {\n\tconstructor() {\n\t\tsuper();\n\t\tthis._tag = \"div\";\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t\tlet xPos = 0;\n\t\tlet yPos = 0;\n\t\tlet width = this.clientWidth();\n\t\tlet height = this.clientHeight();\n\t\tswitch (this.units()) {\n\t\t\tcase \"pixels\":\n\t\t\t\txPos = this.widgetX();\n\t\t\t\tyPos = this.widgetY();\n\t\t\t\twidth = this.widgetWidth() === \"\" ? width - xPos : Number(this.widgetWidth());\n\t\t\t\theight = this.widgetHeight() === \"\" ? height - yPos : Number(this.widgetHeight());\n\t\t\t\tbreak;\n\t\t\tcase \"percent\":\n\t\t\t\txPos = this.widgetX() * width / 100;\n\t\t\t\tyPos = this.widgetY() * height / 100;\n\t\t\t\twidth = this.widgetWidth() === \"\" ? width - xPos : Number(this.widgetWidth()) * width / 100;\n\t\t\t\theight = this.widgetHeight() === \"\" ? height - yPos : Number(this.widgetHeight()) * height / 100;\n\t\t\t\tbreak;\n\t\t}\n\t\telement.style(\"opacity\", this.opacity());\n\t\tconst widgets = element.selectAll(\"#\" + this._id + \" > .placeholder\").data(this.widget() ? [this.widget()] : [], function(d) {\n\t\t\treturn d._id;\n\t\t});\n\t\twidgets.enter().append(\"div\").attr(\"class\", \"placeholder\").each(function(d) {\n\t\t\td.target(this);\n\t\t}).merge(widgets).style(\"left\", xPos + \"px\").style(\"top\", yPos + \"px\").style(\"width\", width + \"px\").style(\"bottom\", height + \"px\").each(function(d) {\n\t\t\td.resize({\n\t\t\t\twidth,\n\t\t\t\theight\n\t\t\t});\n\t\t});\n\t\twidgets.exit().each(function(d) {\n\t\t\td.target(null);\n\t\t}).remove();\n\t}\n\texit(domNode, element) {\n\t\tif (this.widget()) this.widget().target(null);\n\t\tsuper.exit(domNode, element);\n\t}\n};\nAbsoluteSurface.prototype._class += \" layout_AbsoluteSurface\";\nAbsoluteSurface.prototype.publish(\"units\", \"percent\", \"set\", \"Units\", [\"pixels\", \"percent\"]);\nAbsoluteSurface.prototype.publish(\"widgetX\", 0, \"number\", \"Widget XPos\");\nAbsoluteSurface.prototype.publish(\"widgetY\", 0, \"number\", \"Widget YPos\");\nAbsoluteSurface.prototype.publish(\"widgetWidth\", \"100\", \"string\", \"Widget Width, omit for full\");\nAbsoluteSurface.prototype.publish(\"widgetHeight\", \"100\", \"string\", \"Widget Height, omit for full\");\nAbsoluteSurface.prototype.publish(\"widget\", null, \"widget\", \"Widget\", null, { tags: [\"Private\"] });\nAbsoluteSurface.prototype.publish(\"opacity\", 1, \"number\", \"Opacity\");\n\n//#endregion\n//#region src/Accordion.ts\nvar Accordion = class extends HTMLWidget {\n\t_isClosed;\n\ttitleSpan;\n\ticonDiv;\n\tul;\n\ticon;\n\tconstructor() {\n\t\tsuper();\n\t\tthis._tag = \"div\";\n\t\tthis._isClosed = false;\n\t}\n\tpushListItem(widget, prepend = false, protect = false) {\n\t\tconst contentArr = this.content();\n\t\twidget._protected = protect;\n\t\tif (prepend) contentArr.unshift(widget);\n\t\telse contentArr.push(widget);\n\t\tthis.content(contentArr);\n\t\treturn this;\n\t}\n\tclearListItems() {\n\t\tconst arr = [];\n\t\tfor (const i in this.content()) if (this.content()[i]._protected) arr.push(this.content()[i]);\n\t\tthis.content(arr);\n\t\treturn this;\n\t}\n\tcollapseClick(element) {\n\t\tif (element.classed(\"closed\")) {\n\t\t\tthis._isClosed = false;\n\t\t\telement.classed(\"open\", true);\n\t\t\telement.classed(\"closed\", false);\n\t\t} else {\n\t\t\tthis._isClosed = true;\n\t\t\telement.classed(\"open\", false);\n\t\t\telement.classed(\"closed\", true);\n\t\t}\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tconst context = this;\n\t\tthis._isClosed = this.defaultCollapsed();\n\t\telement.classed(this._isClosed ? \"closed\" : \"open\", true);\n\t\tthis.titleSpan = element.append(\"span\").classed(\"collapsible-title\", true);\n\t\tthis.iconDiv = element.append(\"div\").classed(\"collapsible-icon\", true);\n\t\tthis.ul = element.append(\"ul\");\n\t\tthis.icon = new FAChar().size({\n\t\t\theight: 24,\n\t\t\twidth: 24\n\t\t}).target(this.iconDiv.node());\n\t\tthis.iconDiv.on(\"click\", function() {\n\t\t\tcontext.collapseClick(element);\n\t\t\tcontext.render();\n\t\t});\n\t\tthis.titleSpan.on(\"click\", function() {\n\t\t\tcontext.collapseClick(element);\n\t\t\tcontext.render();\n\t\t});\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t\tconst context = this;\n\t\tthis.titleSpan.text(context.title().length > 0 ? context.title() + \"\" : \"Accordion [\" + context._id + \"]\");\n\t\tconst rows = this.ul.selectAll(\"#\" + context._id + \" > ul > li\").data(this.content(), function(d) {\n\t\t\treturn d._id;\n\t\t});\n\t\trows.enter().append(function(widget) {\n\t\t\tconst li = document.createElement(\"li\");\n\t\t\tif (widget._target === null) {\n\t\t\t\tconst wSize = widget.size();\n\t\t\t\tif (wSize.width === 0 || wSize.height === 0) {\n\t\t\t\t\tconst cSize = context.size();\n\t\t\t\t\twidget.size({\n\t\t\t\t\t\twidth: cSize.width,\n\t\t\t\t\t\theight: cSize.width\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\twidget.target(li);\n\t\t\t} else return widget._target;\n\t\t\treturn li;\n\t\t});\n\t\trows.exit().remove();\n\t\tthis.icon.text_colorFill(this.titleFontColor()).char(this._isClosed ? this.closedIcon() : this.openIcon()).render();\n\t}\n\texit(domNode, element) {\n\t\tsuper.exit(domNode, element);\n\t}\n};\nAccordion.prototype._class += \" layout_Accordion\";\nAccordion.prototype.publish(\"content\", [], \"widgetArray\", \"Array of widgets\", null, { tags: [\"Basic\"] });\nAccordion.prototype.publish(\"title\", \"\", \"string\", \"Title of collapsible section\", null, { tags: [\"Private\"] });\nAccordion.prototype.publish(\"openIcon\", \"\", \"string\", \"Icon to display when list is open\", null, { tags: [\"Private\"] });\nAccordion.prototype.publish(\"closedIcon\", \"\", \"string\", \"Icon to display when list is closed\", null, { tags: [\"Private\"] });\nAccordion.prototype.publish(\"titleFontColor\", \"#FFFFFF\", \"html-color\", \"Title font color\", null, { tags: [\"Private\"] });\nAccordion.prototype.publish(\"titleBackgroundColor\", \"#333333\", \"html-color\", \"Title background color\", null, { tags: [\"Private\"] });\nAccordion.prototype.publish(\"defaultCollapsed\", false, \"boolean\", \"Collapsed by default if true\", null, { tags: [\"Private\"] });\n\n//#endregion\n//#region src/Surface.ts\nvar Surface = class extends HTMLWidget {\n\t_surfaceButtons;\n\tconstructor() {\n\t\tsuper();\n\t\tthis._tag = \"div\";\n\t\tthis._surfaceButtons = [];\n\t}\n\twidgetSize(titleDiv, widgetDiv) {\n\t\tlet width = this.clientWidth();\n\t\tlet height = this.clientHeight();\n\t\tif (this.title()) height -= this.calcHeight(titleDiv);\n\t\theight -= this.calcFrameHeight(widgetDiv);\n\t\twidth -= this.calcFrameWidth(widgetDiv);\n\t\treturn {\n\t\t\twidth,\n\t\t\theight\n\t\t};\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t}\n\tupdate(domNode, element2) {\n\t\tsuper.update(domNode, element2);\n\t\tconst context = this;\n\t\telement2.classed(\"shadow2\", this.surfaceShadow()).style(\"border-width\", this.surfaceBorderWidth_exists() ? this.surfaceBorderWidth() + \"px\" : null).style(\"border-color\", this.surfaceBorderColor()).style(\"border-radius\", this.surfaceBorderRadius_exists() ? this.surfaceBorderRadius() + \"px\" : null).style(\"background-color\", this.surfaceBackgroundColor());\n\t\tconst titles = element2.selectAll(\".surfaceTitle\").data(this.title() ? [this.title()] : []);\n\t\ttitles.enter().insert(\"h3\", \"div\").attr(\"class\", \"surfaceTitle\").merge(titles).text(function(d) {\n\t\t\treturn d;\n\t\t}).style(\"text-align\", this.surfaceTitleAlignment()).style(\"color\", this.surfaceTitleFontColor()).style(\"font-size\", this.surfaceTitleFontSize_exists() ? this.surfaceTitleFontSize() + \"px\" : null).style(\"font-family\", this.surfaceTitleFontFamily()).style(\"font-weight\", this.surfaceTitleFontBold() ? \"bold\" : \"normal\").style(\"background-color\", this.surfaceTitleBackgroundColor()).style(\"padding\", this.surfaceTitlePadding_exists() ? this.surfaceTitlePadding() + \"px\" : null).style(\"title\", this.altText_exists() ? this.altText() : null);\n\t\ttitles.exit().remove();\n\t\tconst surfaceButtons = element2.select(\".surfaceTitle\").append(\"div\").attr(\"class\", \"html-button-container\").selectAll(\".surface-button\").data(this.buttonAnnotations());\n\t\tsurfaceButtons.enter().append(\"button\").classed(\"surface-button\", true).each(function(button, idx) {\n\t\t\tconst el = context._surfaceButtons[idx] = select(this).attr(\"class\", \"surface-button\" + (button.class ? \" \" + button.class : \"\")).attr(\"id\", button.id).style(\"padding\", button.padding).style(\"width\", button.width).style(\"height\", button.height).style(\"cursor\", \"pointer\");\n\t\t\tif (button.font === \"FontAwesome\") el.style(\"background\", \"transparent\").style(\"border\", \"none\").on(\"click\", function(d) {\n\t\t\t\tcontext.click(d);\n\t\t\t}).append(\"i\").attr(\"class\", \"fa\").text(function() {\n\t\t\t\treturn button.label;\n\t\t\t});\n\t\t\telse el.text(function() {\n\t\t\t\treturn button.label;\n\t\t\t}).on(\"click\", function(d) {\n\t\t\t\tcontext.click(d);\n\t\t\t});\n\t\t});\n\t\tsurfaceButtons.exit().each(function(_d, idx) {\n\t\t\tconst element = select(this);\n\t\t\tdelete context._surfaceButtons[idx];\n\t\t\telement.remove();\n\t\t});\n\t\tconst widgets = element2.selectAll(\"#\" + this._id + \" > .surfaceWidget\").data(this.widget() ? [this.widget()] : [], function(d) {\n\t\t\treturn d._id;\n\t\t});\n\t\twidgets.enter().append(\"div\").attr(\"class\", \"surfaceWidget\").each(function(d) {\n\t\t\tselect(context.element().node().parentElement).classed(\"content-icon content-icon-\" + d.classID().split(\"_\")[1], true);\n\t\t\td.target(this);\n\t\t}).merge(widgets).style(\"padding\", this.surfacePadding_exists() ? this.surfacePadding() + \"px\" : null).each(function(d) {\n\t\t\tconst widgetSize = context.widgetSize(element2.select(\"h3\"), select(this));\n\t\t\tif (widgetSize.width < 0) widgetSize.width = 0;\n\t\t\tif (widgetSize.height < 0) widgetSize.height = 0;\n\t\t\td.resize({\n\t\t\t\twidth: widgetSize.width,\n\t\t\t\theight: widgetSize.height\n\t\t\t});\n\t\t});\n\t\twidgets.exit().each(function(d) {\n\t\t\td.target(null);\n\t\t}).remove();\n\t}\n\texit(domNode, element) {\n\t\tif (this.widget()) this.widget().target(null);\n\t\tsuper.exit(domNode, element);\n\t}\n\tclick(obj) {}\n};\nSurface.prototype._class += \" layout_Surface\";\nSurface.prototype.publish(\"title\", \"\", \"string\", \"Title\", null, { tags: [\"Intermediate\"] });\nSurface.prototype.publish(\"altText\", null, \"string\", \"Alt text\", null, { optional: true });\nSurface.prototype.publish(\"surfaceTitlePadding\", null, \"number\", \"Title Padding (px)\", null, {\n\ttags: [\"Advanced\"],\n\tdisable: (w) => !w.title()\n});\nSurface.prototype.publish(\"surfaceTitleFontSize\", null, \"number\", \"Title Font Size (px)\", null, {\n\ttags: [\"Advanced\"],\n\tdisable: (w) => !w.title()\n});\nSurface.prototype.publish(\"surfaceTitleFontColor\", null, \"html-color\", \"Title Font Color\", null, {\n\ttags: [\"Advanced\"],\n\tdisable: (w) => !w.title()\n});\nSurface.prototype.publish(\"surfaceTitleFontFamily\", null, \"string\", \"Title Font Family\", null, {\n\ttags: [\"Advanced\"],\n\tdisable: (w) => !w.title()\n});\nSurface.prototype.publish(\"surfaceTitleFontBold\", true, \"boolean\", \"Enable Bold Title Font\", null, {\n\ttags: [\"Advanced\"],\n\tdisable: (w) => !w.title()\n});\nSurface.prototype.publish(\"surfaceTitleBackgroundColor\", null, \"html-color\", \"Title Background Color\", null, {\n\ttags: [\"Advanced\"],\n\tdisable: (w) => !w.title()\n});\nSurface.prototype.publish(\"surfaceTitleAlignment\", \"center\", \"set\", \"Title Alignment\", [\n\t\"left\",\n\t\"right\",\n\t\"center\"\n], {\n\ttags: [\"Basic\"],\n\tdisable: (w) => !w.title()\n});\nSurface.prototype.publish(\"surfaceShadow\", false, \"boolean\", \"3D Shadow\");\nSurface.prototype.publish(\"surfacePadding\", null, \"string\", \"Surface Padding (px)\", null, { tags: [\"Intermediate\"] });\nSurface.prototype.publish(\"surfaceBackgroundColor\", null, \"html-color\", \"Surface Background Color\", null, { tags: [\"Advanced\"] });\nSurface.prototype.publish(\"surfaceBorderWidth\", null, \"number\", \"Surface Border Width (px)\", null, { tags: [\"Advanced\"] });\nSurface.prototype.publish(\"surfaceBorderColor\", null, \"html-color\", \"Surface Border Color\", null, { tags: [\"Advanced\"] });\nSurface.prototype.publish(\"surfaceBorderRadius\", null, \"number\", \"Surface Border Radius (px)\", null, { tags: [\"Advanced\"] });\nSurface.prototype.publish(\"buttonAnnotations\", [], \"array\", \"Button Array\", null, { tags: [\"Private\"] });\nSurface.prototype.publish(\"widget\", null, \"widget\", \"Widget\", null, { tags: [\"Basic\"] });\n\n//#endregion\n//#region src/Cell.ts\nvar Cell = class extends Surface {\n\t_indicateTheseIds;\n\tconstructor() {\n\t\tsuper();\n\t\tthis._indicateTheseIds = [];\n\t}\n\tindicateTheseIds(_) {\n\t\tif (!arguments.length) return this._indicateTheseIds;\n\t\tthis._indicateTheseIds = _;\n\t\treturn this;\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tconst context = this;\n\t\telement.classed(\"layout_Surface\", true).on(\"mouseenter\", function() {\n\t\t\tcontext.onMouseEnter();\n\t\t}).on(\"mouseleave\", function() {\n\t\t\tcontext.onMouseLeave();\n\t\t});\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t}\n\tonMouseEnter() {\n\t\tconst arr = this.indicateTheseIds();\n\t\tconst opacity = this.indicatorOpacity();\n\t\tconst indicatorBorderColor = this.indicatorBorderColor();\n\t\tconst indicatorGlowColor = this.indicatorGlowColor();\n\t\tfor (let i = 0; i < arr.length; i++) {\n\t\t\tconst otherElement = select(\"#\" + arr[i]);\n\t\t\tconst otherWidget = otherElement.datum();\n\t\t\tif (otherElement && otherWidget) otherElement.append(\"div\").attr(\"class\", \"update-indicator\").style(\"width\", otherWidget.width() + \"px\").style(\"height\", otherWidget.height() + \"px\").style(\"opacity\", opacity).style(\"border-color\", indicatorBorderColor).style(\"-webkit-box-shadow\", \"inset 0px 0px 30px 0px \" + indicatorGlowColor).style(\"-moz-box-shadow\", \"inset 0px 0px 30px 0px \" + indicatorGlowColor).style(\"box-shadow\", \"inset 0px 0px 30px 0px \" + indicatorGlowColor);\n\t\t}\n\t}\n\tonMouseLeave() {\n\t\tconst arr = this.indicateTheseIds();\n\t\tfor (let i = 0; i < arr.length; i++) selectAll(\"#\" + arr[i] + \" > div.update-indicator\").remove();\n\t}\n};\nCell.prototype._class += \" layout_Cell\";\nCell.prototype.publish(\"gridRow\", 0, \"number\", \"Grid Row Position\", null, { tags: [\"Private\"] });\nCell.prototype.publish(\"gridCol\", 0, \"number\", \"Grid Column Position\", null, { tags: [\"Private\"] });\nCell.prototype.publish(\"gridRowSpan\", 1, \"number\", \"Grid Row Span\", null, { tags: [\"Private\"] });\nCell.prototype.publish(\"gridColSpan\", 1, \"number\", \"Grid Column Span\", null, { tags: [\"Private\"] });\nCell.prototype.publish(\"indicatorGlowColor\", \"#EEEE11\", \"html-color\", \"Glow color of update-indicator\", null, { tags: [\"Basic\"] });\nCell.prototype.publish(\"indicatorBorderColor\", \"#F48A00\", \"html-color\", \"Border color of update-indicator\", null, { tags: [\"Basic\"] });\nCell.prototype.publish(\"indicatorOpacity\", .8, \"number\", \"Opacity of update-indicator\", null, { tags: [\"Basic\"] });\n\n//#endregion\n//#region src/Border.ts\nvar Border = class extends HTMLWidget {\n\t_colCount;\n\t_rowCount;\n\t_colSize;\n\t_rowSize;\n\t_shrinkWrapBoxes;\n\t_watch;\n\t_offsetX;\n\t_offsetY;\n\t_dragCell;\n\t_dragCellSize;\n\t_dragCellStartSize;\n\t_handleTop;\n\t_handleLeft;\n\t_dragPrevX;\n\t_dragPrevY;\n\t_cellSizes;\n\tcontentDiv;\n\t_scrollBarWidth;\n\t_borderHandles;\n\t_sectionTypeArr;\n\tconstructor() {\n\t\tsuper();\n\t\tthis._tag = \"div\";\n\t\tthis._colCount = 0;\n\t\tthis._rowCount = 0;\n\t\tthis._colSize = 0;\n\t\tthis._rowSize = 0;\n\t\tthis._shrinkWrapBoxes = {};\n\t\tthis.content([]);\n\t\tthis.sectionTypes([]);\n\t}\n\twatchWidget(widget) {\n\t\tif (this._watch === void 0) this._watch = {};\n\t\tif (this._watch[widget.id()]) {\n\t\t\tthis._watch[widget.id()].remove();\n\t\t\tdelete this._watch[widget.id()];\n\t\t}\n\t\tif (widget) {\n\t\t\tconst context = this;\n\t\t\tthis._watch[widget.id()] = widget.monitor(function(paramId, newVal, oldVal) {\n\t\t\t\tif (oldVal !== newVal) context.lazyPostUpdate();\n\t\t\t});\n\t\t}\n\t}\n\tlazyPostUpdate = Utility.debounce(function() {\n\t\tthis.postUpdate();\n\t}, 100);\n\tapplyLayoutType() {\n\t\tconst layoutObj = this.borderLayoutObject();\n\t\tthis.content().forEach(function(cell, i) {\n\t\t\tcell._fixedLeft = layoutObj[this.sectionTypes()[i]].left;\n\t\t\tcell._fixedTop = layoutObj[this.sectionTypes()[i]].top;\n\t\t\tcell._fixedWidth = layoutObj[this.sectionTypes()[i]].width;\n\t\t\tcell._fixedHeight = layoutObj[this.sectionTypes()[i]].height;\n\t\t\tcell._dragHandles = this.cellSpecificDragHandles(this.sectionTypes()[i]);\n\t\t}, this);\n\t}\n\tcellSpecificDragHandles(sectionType) {\n\t\tswitch (sectionType) {\n\t\t\tcase \"top\": return [\"s\"];\n\t\t\tcase \"right\": return [\"w\"];\n\t\t\tcase \"bottom\": return [\"n\"];\n\t\t\tcase \"left\": return [\"e\"];\n\t\t\tcase \"center\": return [];\n\t\t}\n\t}\n\tborderLayoutObject(layoutType) {\n\t\tconst retObj = {};\n\t\tconst context = this;\n\t\tlet topSize;\n\t\tlet topPerc;\n\t\tlet bottomSize;\n\t\tlet bottomPerc;\n\t\tlet leftSize;\n\t\tlet leftPerc;\n\t\tlet rightSize;\n\t\tlet rightPerc;\n\t\tconst bcRect = this.target().getBoundingClientRect();\n\t\tconst gridRect = {};\n\t\tgridRect.top = bcRect.top;\n\t\tgridRect.left = bcRect.left;\n\t\tgridRect.bottom = bcRect.bottom;\n\t\tgridRect.right = bcRect.right;\n\t\tif (this.target() instanceof SVGElement) {\n\t\t\tgridRect.width = parseFloat(this.target().getAttribute(\"width\"));\n\t\t\tgridRect.height = parseFloat(this.target().getAttribute(\"height\"));\n\t\t} else {\n\t\t\tgridRect.width = bcRect.width;\n\t\t\tgridRect.height = bcRect.height;\n\t\t}\n\t\tif (this.sectionTypes().indexOf(\"top\") !== -1) {\n\t\t\ttopSize = this.topSize();\n\t\t\ttopPerc = this.topPercentage();\n\t\t\tif (typeof this._shrinkWrapBoxes[\"top\"] !== \"undefined\") {\n\t\t\t\ttopSize = this._shrinkWrapBoxes[\"top\"].height + this.gutter();\n\t\t\t\ttopPerc = 0;\n\t\t\t}\n\t\t}\n\t\tif (this.sectionTypes().indexOf(\"bottom\") !== -1) {\n\t\t\tbottomSize = this.bottomSize();\n\t\t\tbottomPerc = this.bottomPercentage();\n\t\t\tif (typeof this._shrinkWrapBoxes[\"bottom\"] !== \"undefined\") {\n\t\t\t\tbottomSize = this._shrinkWrapBoxes[\"bottom\"].height + this.gutter();\n\t\t\t\tbottomPerc = 0;\n\t\t\t}\n\t\t}\n\t\tif (this.sectionTypes().indexOf(\"left\") !== -1) {\n\t\t\tleftSize = this.leftSize();\n\t\t\tleftPerc = this.leftPercentage();\n\t\t\tif (typeof this._shrinkWrapBoxes[\"left\"] !== \"undefined\") {\n\t\t\t\tleftSize = this._shrinkWrapBoxes[\"left\"].width + this.gutter();\n\t\t\t\tleftPerc = 0;\n\t\t\t}\n\t\t}\n\t\tif (this.sectionTypes().indexOf(\"right\") !== -1) {\n\t\t\trightSize = this.rightSize();\n\t\t\trightPerc = this.rightPercentage();\n\t\t\tif (typeof this._shrinkWrapBoxes[\"right\"] !== \"undefined\") {\n\t\t\t\trightSize = this._shrinkWrapBoxes[\"right\"].width + this.gutter();\n\t\t\t\trightPerc = 0;\n\t\t\t}\n\t\t}\n\t\tconst t = _sectionPlacementObject({\n\t\t\twidth: {\n\t\t\t\t\"px\": 0,\n\t\t\t\t\"%\": 100\n\t\t\t},\n\t\t\theight: {\n\t\t\t\t\"px\": topSize,\n\t\t\t\t\"%\": topPerc\n\t\t\t},\n\t\t\ttop: {\n\t\t\t\t\"px\": 0,\n\t\t\t\t\"%\": 0\n\t\t\t},\n\t\t\tleft: {\n\t\t\t\t\"px\": 0,\n\t\t\t\t\"%\": 0\n\t\t\t}\n\t\t});\n\t\tconst b = _sectionPlacementObject({\n\t\t\twidth: {\n\t\t\t\t\"px\": 0,\n\t\t\t\t\"%\": 100\n\t\t\t},\n\t\t\theight: {\n\t\t\t\t\"px\": bottomSize,\n\t\t\t\t\"%\": bottomPerc\n\t\t\t},\n\t\t\ttop: {\n\t\t\t\t\"px\": 0,\n\t\t\t\t\"%\": 100\n\t\t\t},\n\t\t\tleft: {\n\t\t\t\t\"px\": 0,\n\t\t\t\t\"%\": 0\n\t\t\t}\n\t\t});\n\t\tb.top -= b.height;\n\t\tconst l = _sectionPlacementObject({\n\t\t\twidth: {\n\t\t\t\t\"px\": leftSize,\n\t\t\t\t\"%\": leftPerc\n\t\t\t},\n\t\t\theight: {\n\t\t\t\t\"px\": -t.height - b.height,\n\t\t\t\t\"%\": 100\n\t\t\t},\n\t\t\ttop: {\n\t\t\t\t\"px\": t.height,\n\t\t\t\t\"%\": 0\n\t\t\t},\n\t\t\tleft: {\n\t\t\t\t\"px\": 0,\n\t\t\t\t\"%\": 0\n\t\t\t}\n\t\t});\n\t\tconst r = _sectionPlacementObject({\n\t\t\twidth: {\n\t\t\t\t\"px\": rightSize,\n\t\t\t\t\"%\": rightPerc\n\t\t\t},\n\t\t\theight: {\n\t\t\t\t\"px\": -t.height - b.height,\n\t\t\t\t\"%\": 100\n\t\t\t},\n\t\t\ttop: {\n\t\t\t\t\"px\": t.height,\n\t\t\t\t\"%\": 0\n\t\t\t},\n\t\t\tleft: {\n\t\t\t\t\"px\": 0,\n\t\t\t\t\"%\": 100\n\t\t\t}\n\t\t});\n\t\tr.left -= r.width;\n\t\tconst c$1 = _sectionPlacementObject({\n\t\t\twidth: {\n\t\t\t\t\"px\": -r.width - l.width,\n\t\t\t\t\"%\": 100\n\t\t\t},\n\t\t\theight: {\n\t\t\t\t\"px\": -t.height - b.height,\n\t\t\t\t\"%\": 100\n\t\t\t},\n\t\t\ttop: {\n\t\t\t\t\"px\": t.height,\n\t\t\t\t\"%\": 0\n\t\t\t},\n\t\t\tleft: {\n\t\t\t\t\"px\": l.width,\n\t\t\t\t\"%\": 0\n\t\t\t}\n\t\t});\n\t\tretObj[\"top\"] = t;\n\t\tretObj[\"bottom\"] = b;\n\t\tretObj[\"right\"] = r;\n\t\tretObj[\"left\"] = l;\n\t\tretObj[\"center\"] = c$1;\n\t\treturn retObj;\n\t\tfunction _sectionPlacementObject(obj) {\n\t\t\tobj.width[\"px\"] = typeof obj.width[\"px\"] !== \"undefined\" ? obj.width[\"px\"] : 0;\n\t\t\tobj.width[\"%\"] = typeof obj.width[\"%\"] !== \"undefined\" ? obj.width[\"%\"] : 0;\n\t\t\tobj.height[\"px\"] = typeof obj.height[\"px\"] !== \"undefined\" ? obj.height[\"px\"] : 0;\n\t\t\tobj.height[\"%\"] = typeof obj.height[\"%\"] !== \"undefined\" ? obj.height[\"%\"] : 0;\n\t\t\treturn {\n\t\t\t\twidth: obj.width[\"px\"] + obj.width[\"%\"] / 100 * context.width(),\n\t\t\t\theight: obj.height[\"px\"] + obj.height[\"%\"] / 100 * context.height(),\n\t\t\t\ttop: obj.top[\"px\"] + obj.top[\"%\"] / 100 * context.height() + context.gutter() / 2,\n\t\t\t\tleft: obj.left[\"px\"] + obj.left[\"%\"] / 100 * context.width() + context.gutter() / 2\n\t\t\t};\n\t\t}\n\t}\n\tclearContent(sectionType) {\n\t\tif (!sectionType) {\n\t\t\tthis.content().forEach(function(contentWidget) {\n\t\t\t\tcontentWidget.target(null);\n\t\t\t\treturn false;\n\t\t\t});\n\t\t\tselect(\"#\" + this.id() + \" > div.borderHandle\").classed(\"borderHandleDisabled\", true);\n\t\t\tdelete this._watch;\n\t\t\tthis.content([]);\n\t\t\tthis.sectionTypes([]);\n\t\t} else {\n\t\t\tconst idx = this.sectionTypes().indexOf(sectionType);\n\t\t\tif (idx >= 0) {\n\t\t\t\tif (this._watch && this.content()[idx]) delete this._watch[this.content()[idx].id()];\n\t\t\t\tthis.content()[idx].target(null);\n\t\t\t\tselect(\"#\" + this.id() + \" > div.borderHandle_\" + sectionType).classed(\"borderHandleDisabled\", true);\n\t\t\t\tthis.content().splice(idx, 1);\n\t\t\t\tthis.sectionTypes().splice(idx, 1);\n\t\t\t}\n\t\t}\n\t}\n\thasContent(sectionType, widget, title) {\n\t\treturn this.sectionTypes().indexOf(sectionType) >= 0;\n\t}\n\tsetContent(sectionType, widget, title) {\n\t\tthis.clearContent(sectionType);\n\t\ttitle = typeof title !== \"undefined\" ? title : \"\";\n\t\tif (widget) {\n\t\t\tconst cell = new Cell().surfaceBorderWidth(0).widget(widget).title(title);\n\t\t\tthis.watchWidget(widget);\n\t\t\tthis.content().push(cell);\n\t\t\tthis.sectionTypes().push(sectionType);\n\t\t}\n\t\treturn this;\n\t}\n\tgetCell(id) {\n\t\tconst idx = this.sectionTypes().indexOf(id);\n\t\tif (idx >= 0) return this.content()[idx];\n\t\treturn null;\n\t}\n\tgetContent(id) {\n\t\tconst idx = this.sectionTypes().indexOf(id);\n\t\tif (idx >= 0) return this.content()[idx].widget();\n\t\treturn null;\n\t}\n\tsetLayoutOffsets() {\n\t\tthis._offsetX = this._element.node().getBoundingClientRect().left + this.gutter() / 2;\n\t\tthis._offsetY = this._element.node().getBoundingClientRect().top + this.gutter() / 2;\n\t}\n\tdragStart(handle) {\n\t\tconst event = d3Event();\n\t\tevent.sourceEvent.stopPropagation();\n\t\tconst context = this;\n\t\tthis._dragCell = handle;\n\t\tthis._dragCellStartSize = this[handle + \"Size\"]();\n\t\tif (this[handle + \"ShrinkWrap\"]()) {\n\t\t\tthis[handle + \"Percentage\"](0);\n\t\t\tthis[handle + \"ShrinkWrap\"](false);\n\t\t}\n\t\tconst handleElm = select(\"#\" + context.id() + \" > div.borderHandle_\" + handle);\n\t\tcontext._handleTop = parseFloat(handleElm.style(\"top\").split(\"px\")[0]);\n\t\tcontext._handleLeft = parseFloat(handleElm.style(\"left\").split(\"px\")[0]);\n\t\tthis._dragPrevX = event.sourceEvent.clientX;\n\t\tthis._dragPrevY = event.sourceEvent.clientY;\n\t}\n\tdragTick(handle) {\n\t\tconst context = this;\n\t\tconst event = d3Event();\n\t\tconst xDelta = this._dragPrevX - event.sourceEvent.clientX;\n\t\tconst yDelta = this._dragPrevY - event.sourceEvent.clientY;\n\t\tswitch (handle) {\n\t\t\tcase \"top\":\n\t\t\tcase \"bottom\":\n\t\t\t\t_moveHandles(handle, yDelta);\n\t\t\t\tbreak;\n\t\t\tcase \"right\":\n\t\t\tcase \"left\":\n\t\t\t\t_moveHandles(handle, xDelta);\n\t\t\t\tbreak;\n\t\t}\n\t\tfunction _moveHandles(handle2, delta) {\n\t\t\tif (delta === 0) return;\n\t\t\tconst handles = selectAll(\"#\" + context.id() + \" > div.borderHandle\");\n\t\t\tconst grabbedHandle = select(\"#\" + context.id() + \" > div.borderHandle_\" + handle2);\n\t\t\tif (grabbedHandle.classed(\"borderHandle_top\")) {\n\t\t\t\tgrabbedHandle.style(\"top\", context._handleTop - delta + \"px\");\n\t\t\t\tcontext._cellSizes.topHeight = context._handleTop - delta;\n\t\t\t\tcontext._cellSizes.leftHeight = context._cellSizes.height;\n\t\t\t\tcontext._cellSizes.leftHeight -= context._cellSizes.topHeight;\n\t\t\t\tcontext._cellSizes.leftHeight -= context._cellSizes.bottomHeight;\n\t\t\t\tcontext._cellSizes.rightHeight = context._cellSizes.leftHeight;\n\t\t\t} else if (grabbedHandle.classed(\"borderHandle_right\")) {\n\t\t\t\tgrabbedHandle.style(\"left\", context._handleLeft - delta + \"px\");\n\t\t\t\tcontext._cellSizes.rightWidth = context._cellSizes.width - context._handleLeft + delta;\n\t\t\t} else if (grabbedHandle.classed(\"borderHandle_bottom\")) {\n\t\t\t\tgrabbedHandle.style(\"top\", context._handleTop - delta + \"px\");\n\t\t\t\tcontext._cellSizes.bottomHeight = context._cellSizes.height - context._handleTop + delta;\n\t\t\t\tcontext._cellSizes.leftHeight = context._cellSizes.height;\n\t\t\t\tcontext._cellSizes.leftHeight -= context._cellSizes.bottomHeight;\n\t\t\t\tcontext._cellSizes.leftHeight -= context._cellSizes.topHeight;\n\t\t\t\tcontext._cellSizes.rightHeight = context._cellSizes.leftHeight;\n\t\t\t} else if (grabbedHandle.classed(\"borderHandle_left\")) {\n\t\t\t\tgrabbedHandle.style(\"left\", context._handleLeft - delta + \"px\");\n\t\t\t\tcontext._cellSizes.leftWidth = context._handleLeft - delta;\n\t\t\t}\n\t\t\thandles.each(function() {\n\t\t\t\tconst handle3 = select(this);\n\t\t\t\tif (handle3.classed(\"borderHandle_top\")) {\n\t\t\t\t\thandle3.style(\"width\", context._cellSizes.width + \"px\");\n\t\t\t\t\thandle3.style(\"top\", context._cellSizes.topHeight - 3 + \"px\");\n\t\t\t\t} else if (handle3.classed(\"borderHandle_right\")) {\n\t\t\t\t\thandle3.style(\"left\", context._cellSizes.width - context._cellSizes.rightWidth + \"px\");\n\t\t\t\t\thandle3.style(\"top\", context._cellSizes.topHeight + 3 + \"px\");\n\t\t\t\t\thandle3.style(\"height\", context._cellSizes.rightHeight + \"px\");\n\t\t\t\t} else if (handle3.classed(\"borderHandle_bottom\")) {\n\t\t\t\t\thandle3.style(\"width\", context._cellSizes.width + \"px\");\n\t\t\t\t\thandle3.style(\"top\", context._cellSizes.height - context._cellSizes.bottomHeight - 3 + \"px\");\n\t\t\t\t} else if (handle3.classed(\"borderHandle_left\")) {\n\t\t\t\t\thandle3.style(\"left\", context._cellSizes.leftWidth + \"px\");\n\t\t\t\t\thandle3.style(\"height\", context._cellSizes.leftHeight + \"px\");\n\t\t\t\t\thandle3.style(\"top\", context._cellSizes.topHeight + 3 + \"px\");\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\tdragEnd(handle) {\n\t\tif (handle) {\n\t\t\tconst event = d3Event();\n\t\t\tconst xDelta = this._dragPrevX - event.sourceEvent.clientX;\n\t\t\tconst yDelta = this._dragPrevY - event.sourceEvent.clientY;\n\t\t\tswitch (handle) {\n\t\t\t\tcase \"top\":\n\t\t\t\t\tif (yDelta !== 0) {\n\t\t\t\t\t\tthis.topPercentage(0);\n\t\t\t\t\t\tthis.topSize(this.topSize() === 0 ? this.getContent(\"top\").getBBox().height - yDelta : this.topSize() - yDelta);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"right\":\n\t\t\t\t\tif (xDelta !== 0) {\n\t\t\t\t\t\tthis.rightPercentage(0);\n\t\t\t\t\t\tthis.rightSize(this.rightSize() === 0 ? this.getContent(\"right\").getBBox().width + xDelta : this.rightSize() + xDelta);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"bottom\":\n\t\t\t\t\tif (yDelta !== 0) {\n\t\t\t\t\t\tthis.bottomPercentage(0);\n\t\t\t\t\t\tthis.bottomSize(this.bottomSize() === 0 ? this.getContent(\"bottom\").getBBox().height + yDelta : this.bottomSize() + yDelta);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"left\":\n\t\t\t\t\tif (xDelta !== 0) {\n\t\t\t\t\t\tthis.leftPercentage(0);\n\t\t\t\t\t\tthis.leftSize(this.leftSize() === 0 ? this.getContent(\"left\").getBBox().width - xDelta : this.leftSize() - xDelta);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tthis._dragPrevX = event.sourceEvent.clientX;\n\t\t\tthis._dragPrevY = event.sourceEvent.clientY;\n\t\t}\n\t\tthis.render();\n\t}\n\tsize(_) {\n\t\tconst retVal = HTMLWidget.prototype.size.apply(this, arguments);\n\t\tif (arguments.length && this.contentDiv) this.contentDiv.style(\"width\", this._size.width + \"px\").style(\"height\", this._size.height + \"px\");\n\t\treturn retVal;\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tconst context = this;\n\t\telement.style(\"position\", \"relative\");\n\t\tthis.contentDiv = element.append(\"div\").classed(\"border-content\", true);\n\t\tthis._scrollBarWidth = Platform.getScrollbarWidth();\n\t\tthis._borderHandles = [\n\t\t\t\"top\",\n\t\t\t\"left\",\n\t\t\t\"right\",\n\t\t\t\"bottom\"\n\t\t];\n\t\telement.selectAll(\"div.borderHandle\").data(this._borderHandles).enter().append(\"div\").classed(\"borderHandle\", true).each(function(handle) {\n\t\t\tselect(this).classed(\"borderHandle_\" + handle, true).classed(\"borderHandleDisabled\", context.getContent(handle) === null);\n\t\t});\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t\tthis._sectionTypeArr = this.sectionTypes();\n\t\tconst context = this;\n\t\telement.classed(\"design-mode\", this.designMode());\n\t\tthis.setLayoutOffsets();\n\t\tconst rows = this.contentDiv.selectAll(\".cell_\" + this._id).data(this.content(), function(d) {\n\t\t\treturn d._id;\n\t\t});\n\t\tconst rowsUpdate = rows.enter().append(\"div\").classed(\"cell_\" + this._id, true).style(\"position\", \"absolute\").each(function(d, i) {\n\t\t\tselect(this).classed(\"border-cell border-cell-\" + context._sectionTypeArr[i], true);\n\t\t\td.target(this);\n\t\t\tselect(\"#\" + context.id() + \" > div.borderHandle_\" + context._sectionTypeArr[i]).classed(\"borderHandleDisabled\", false);\n\t\t}).merge(rows);\n\t\trowsUpdate.each(function(d, idx) {\n\t\t\tconst sectionType = context.sectionTypes()[idx];\n\t\t\tif (typeof context[sectionType + \"ShrinkWrap\"] !== \"undefined\" && context[sectionType + \"ShrinkWrap\"]()) {\n\t\t\t\td.render();\n\t\t\t\tcontext._shrinkWrapBoxes[sectionType] = d.widget().getBBox(true);\n\t\t\t} else delete context._shrinkWrapBoxes[sectionType];\n\t\t});\n\t\tconst drag$1 = drag().on(\"start\", function(d, i) {\n\t\t\tcontext.dragStart.call(context, d, i);\n\t\t}).on(\"drag\", function(d, i) {\n\t\t\tcontext.dragTick.call(context, d, i);\n\t\t}).on(\"end\", function(d, i) {\n\t\t\tcontext.dragEnd.call(context, d, i);\n\t\t});\n\t\tif (this.designMode()) element.selectAll(\"#\" + this.id() + \" > div.borderHandle\").call(drag$1);\n\t\telse element.selectAll(\"#\" + this.id() + \" > div.borderHandle\").on(\".drag\", null);\n\t\tconst layoutObj = this.borderLayoutObject();\n\t\tthis.content().forEach(function(cell, i) {\n\t\t\tcell._fixedLeft = layoutObj[this.sectionTypes()[i]].left;\n\t\t\tcell._fixedTop = layoutObj[this.sectionTypes()[i]].top;\n\t\t\tcell._fixedWidth = layoutObj[this.sectionTypes()[i]].width;\n\t\t\tcell._fixedHeight = layoutObj[this.sectionTypes()[i]].height;\n\t\t\tcell._dragHandles = [];\n\t\t}, this);\n\t\trowsUpdate.style(\"left\", function(d) {\n\t\t\treturn d._fixedLeft + \"px\";\n\t\t}).style(\"top\", function(d) {\n\t\t\treturn d._fixedTop + \"px\";\n\t\t}).style(\"width\", function(d) {\n\t\t\treturn d._fixedWidth - context.gutter() + \"px\";\n\t\t}).style(\"height\", function(d) {\n\t\t\treturn d._fixedHeight - context.gutter() + \"px\";\n\t\t}).each(function(d) {\n\t\t\td._placeholderElement.attr(\"draggable\", context.designMode()).selectAll(\".dragHandle\").attr(\"draggable\", context.designMode());\n\t\t\td.surfacePadding(context.surfacePadding()).resize();\n\t\t});\n\t\trows.exit().each(function(d) {\n\t\t\td.target(null);\n\t\t}).remove();\n\t\tthis.getCellSizes();\n\t\telement.selectAll(\"#\" + this.id() + \" > div.borderHandle\").each(function() {\n\t\t\tconst handle = select(this);\n\t\t\tif (handle.classed(\"borderHandle_top\")) {\n\t\t\t\thandle.style(\"width\", context._cellSizes.width + \"px\");\n\t\t\t\thandle.style(\"top\", context._cellSizes.topHeight - 3 + \"px\");\n\t\t\t} else if (handle.classed(\"borderHandle_right\")) {\n\t\t\t\thandle.style(\"left\", context._cellSizes.width - context._cellSizes.rightWidth + \"px\");\n\t\t\t\thandle.style(\"top\", context._cellSizes.topHeight + 3 + \"px\");\n\t\t\t\thandle.style(\"height\", context._cellSizes.rightHeight + \"px\");\n\t\t\t} else if (handle.classed(\"borderHandle_bottom\")) {\n\t\t\t\thandle.style(\"width\", context._cellSizes.width + \"px\");\n\t\t\t\thandle.style(\"top\", context._cellSizes.height - context._cellSizes.bottomHeight - 3 + \"px\");\n\t\t\t} else if (handle.classed(\"borderHandle_left\")) {\n\t\t\t\thandle.style(\"left\", context._cellSizes.leftWidth + \"px\");\n\t\t\t\thandle.style(\"height\", context._cellSizes.leftHeight + \"px\");\n\t\t\t\thandle.style(\"top\", context._cellSizes.topHeight + 3 + \"px\");\n\t\t\t}\n\t\t});\n\t}\n\tgetCellSizes() {\n\t\tconst context = this;\n\t\tcontext._cellSizes = {};\n\t\tconst contentRect = this.element().node().getBoundingClientRect();\n\t\tcontext._cellSizes.width = contentRect.width;\n\t\tcontext._cellSizes.height = contentRect.height;\n\t\tthis.element().selectAll(\"#\" + this.id() + \" > div > div.border-cell\").each(function() {\n\t\t\tconst cell = select(this);\n\t\t\tif (typeof cell.node === \"function\") {\n\t\t\t\tconst rect = cell.node().getBoundingClientRect();\n\t\t\t\tif (cell.classed(\"border-cell-top\")) context._cellSizes.topHeight = rect.height;\n\t\t\t\telse if (cell.classed(\"border-cell-left\")) {\n\t\t\t\t\tcontext._cellSizes.leftWidth = rect.width;\n\t\t\t\t\tcontext._cellSizes.leftHeight = rect.height;\n\t\t\t\t} else if (cell.classed(\"border-cell-right\")) {\n\t\t\t\t\tcontext._cellSizes.rightWidth = rect.width;\n\t\t\t\t\tcontext._cellSizes.rightHeight = rect.height;\n\t\t\t\t} else if (cell.classed(\"border-cell-bottom\")) context._cellSizes.bottomHeight = rect.height;\n\t\t\t}\n\t\t});\n\t\t[\n\t\t\t\"height\",\n\t\t\t\"width\",\n\t\t\t\"topHeight\",\n\t\t\t\"bottomHeight\",\n\t\t\t\"leftHeight\",\n\t\t\t\"rightHeight\",\n\t\t\t\"leftWidth\",\n\t\t\t\"rightWidth\"\n\t\t].forEach(function(size) {\n\t\t\tcontext._cellSizes[size] = context._cellSizes[size] === void 0 ? 0 : context._cellSizes[size];\n\t\t});\n\t}\n\tpostUpdate(domNode, element) {\n\t\tconst context = this;\n\t\tthis.content().forEach(function(n) {\n\t\t\tif (n._element.node() !== null && n.widget()) {\n\t\t\t\tconst prevBox = n.widget().getBBox(false, true);\n\t\t\t\tconst currBox = n.widget().getBBox(true, true);\n\t\t\t\tif (prevBox.width !== currBox.width || prevBox.height !== currBox.height) context.lazyRender();\n\t\t\t}\n\t\t});\n\t}\n\texit(domNode, element) {\n\t\tthis.content().forEach((w) => w.target(null));\n\t\tsuper.exit(domNode, element);\n\t}\n};\nBorder.prototype._class += \" layout_Border\";\nBorder.prototype.publish(\"designMode\", false, \"boolean\", \"Design Mode\", null, { tags: [\"Basic\"] });\nBorder.prototype.publish(\"content\", [], \"widgetArray\", \"widgets\", null, { tags: [\"Intermediate\"] });\nBorder.prototype.publish(\"gutter\", 0, \"number\", \"Gap Between Widgets\", null, { tags: [\"Basic\"] });\nBorder.prototype.publish(\"topShrinkWrap\", false, \"boolean\", \"'Top' Cell shrinks to fit content\", null, { tags: [\"Intermediate\"] });\nBorder.prototype.publish(\"leftShrinkWrap\", false, \"boolean\", \"'Left' Cell shrinks to fit content\", null, { tags: [\"Intermediate\"] });\nBorder.prototype.publish(\"rightShrinkWrap\", false, \"boolean\", \"'Right' Cell shrinks to fit content\", null, { tags: [\"Intermediate\"] });\nBorder.prototype.publish(\"bottomShrinkWrap\", false, \"boolean\", \"'Bottom' Cell shrinks to fit content\", null, { tags: [\"Intermediate\"] });\nBorder.prototype.publish(\"topSize\", 0, \"number\", \"Height of the 'Top' Cell (px)\", null, { tags: [\"Private\"] });\nBorder.prototype.publish(\"leftSize\", 0, \"number\", \"Width of the 'Left' Cell (px)\", null, { tags: [\"Private\"] });\nBorder.prototype.publish(\"rightSize\", 0, \"number\", \"Width of the 'Right' Cell (px)\", null, { tags: [\"Private\"] });\nBorder.prototype.publish(\"bottomSize\", 0, \"number\", \"Height of the 'Bottom' Cell (px)\", null, { tags: [\"Private\"] });\nBorder.prototype.publish(\"topPercentage\", 20, \"number\", \"Percentage (of parent) Height of the 'Top' Cell\", null, { tags: [\"Private\"] });\nBorder.prototype.publish(\"leftPercentage\", 20, \"number\", \"Percentage (of parent) Width of the 'Left' Cell\", null, { tags: [\"Private\"] });\nBorder.prototype.publish(\"rightPercentage\", 20, \"number\", \"Percentage (of parent) Width of the 'Right' Cell\", null, { tags: [\"Private\"] });\nBorder.prototype.publish(\"bottomPercentage\", 20, \"number\", \"Percentage (of parent) Height of the 'Bottom' Cell\", null, { tags: [\"Private\"] });\nBorder.prototype.publish(\"surfacePadding\", 0, \"number\", \"Cell Padding (px)\", null, { tags: [\"Intermediate\"] });\nBorder.prototype.publish(\"sectionTypes\", [], \"array\", \"Section Types sharing an index with 'content' - Used to determine position/size.\", null, { tags: [\"Private\"] });\n\n//#endregion\n//#region src/Border2.ts\nvar WidgetDiv = class {\n\t_div;\n\t_overlay = false;\n\t_overflowX = \"visible\";\n\t_overflowY = \"visible\";\n\t_widget;\n\tconstructor(div) {\n\t\tthis._div = div;\n\t}\n\toverlay(_) {\n\t\tif (!arguments.length) return this._overlay;\n\t\tthis._overlay = _;\n\t\treturn this;\n\t}\n\toverflowX(_) {\n\t\tif (!arguments.length) return this._overflowX;\n\t\tthis._overflowX = _;\n\t\tthis._div.style(\"overflow-x\", _);\n\t\treturn this;\n\t}\n\toverflowY(_) {\n\t\tif (!arguments.length) return this._overflowY;\n\t\tthis._overflowY = _;\n\t\tthis._div.style(\"overflow-y\", _);\n\t\treturn this;\n\t}\n\telement() {\n\t\treturn this._div;\n\t}\n\tnode() {\n\t\treturn this._div.node();\n\t}\n\twidget(_) {\n\t\tif (!arguments.length) return this._widget;\n\t\tif (this._widget !== _) {\n\t\t\tif (this._widget) this._widget.target(null);\n\t\t\tthis._widget = _;\n\t\t\tif (this._widget) this._widget.target(this._div.node());\n\t\t}\n\t\treturn this;\n\t}\n\tresize(size) {\n\t\tif (this._widget) {\n\t\t\tthis._div.style(\"width\", `${size.width}px`).style(\"height\", `${size.height}px`);\n\t\t\tthis._widget.resize(size);\n\t\t}\n\t\treturn this;\n\t}\n\tasync render(getBBox, availableHeight, availableWidth) {\n\t\tlet overflowX = this.overflowX();\n\t\tif (!this.overlay() && overflowX === \"visible\") overflowX = null;\n\t\tlet overflowY = this.overflowY();\n\t\tif (!this.overlay() && overflowY === \"visible\") overflowY = null;\n\t\tthis._div.style(\"height\", this.overlay() ? \"0px\" : null).style(\"overflow-x\", overflowX).style(\"overflow-y\", overflowY);\n\t\tif (this._widget) return this._widget.renderPromise().then((w) => {\n\t\t\tif (getBBox && this._widget.visible()) {\n\t\t\t\tconst retVal = this._widget.getBBox();\n\t\t\t\tretVal.width += 8;\n\t\t\t\tif (availableHeight !== void 0 && retVal.height > availableHeight) retVal.width += Platform.getScrollbarWidth();\n\t\t\t\tif (availableWidth !== void 0 && retVal.width > availableWidth) retVal.height += Platform.getScrollbarWidth();\n\t\t\t\tif (this.overlay()) retVal.height = 0;\n\t\t\t\telse retVal.height += 4;\n\t\t\t\treturn retVal;\n\t\t\t}\n\t\t\treturn getBBox ? {\n\t\t\t\tx: 0,\n\t\t\t\ty: 0,\n\t\t\t\twidth: 0,\n\t\t\t\theight: 0\n\t\t\t} : void 0;\n\t\t});\n\t\telse return Promise.resolve(getBBox ? {\n\t\t\tx: 0,\n\t\t\ty: 0,\n\t\t\twidth: 0,\n\t\t\theight: 0\n\t\t} : void 0);\n\t}\n};\nvar Border2 = class extends HTMLWidget {\n\t_bodyElement;\n\t_topWA;\n\t_leftWA;\n\t_centerWA;\n\t_rightWA;\n\t_bottomWA;\n\t_topPrevOverflow;\n\t_leftPrevOverflow;\n\t_rightPrevOverflow;\n\t_bottomPrevOverflow;\n\tconstructor() {\n\t\tsuper();\n\t\tthis._tag = \"div\";\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tconst topElement = element.append(\"header\");\n\t\tthis._bodyElement = element.append(\"div\").attr(\"class\", \"body\");\n\t\tconst centerElement = this._bodyElement.append(\"div\").attr(\"class\", \"center\");\n\t\tconst leftElement = this._bodyElement.append(\"div\").attr(\"class\", \"lhs\");\n\t\tconst rightElement = this._bodyElement.append(\"div\").attr(\"class\", \"rhs\");\n\t\tconst bottomElement = element.append(\"div\").attr(\"class\", \"footer\");\n\t\tthis._topWA = new WidgetDiv(topElement);\n\t\tthis._centerWA = new WidgetDiv(centerElement);\n\t\tthis._leftWA = new WidgetDiv(leftElement);\n\t\tthis._rightWA = new WidgetDiv(rightElement);\n\t\tthis._bottomWA = new WidgetDiv(bottomElement);\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t\tthis._topWA.element().style(\"display\", this.showTop() ? null : \"none\");\n\t\tthis._rightWA.element().style(\"display\", this.showRight() ? null : \"none\");\n\t\tthis._bottomWA.element().style(\"display\", this.showBottom() ? null : \"none\");\n\t\tthis._leftWA.element().style(\"display\", this.showLeft() ? null : \"none\");\n\t\tif (this.topOverflowX() !== this._topWA.overflowX()) this._topWA.overflowX(this.topOverflowX());\n\t\tif (this.rightOverflowX() !== this._rightWA.overflowX()) this._rightWA.overflowX(this.rightOverflowX());\n\t\tif (this.bottomOverflowX() !== this._bottomWA.overflowX()) this._bottomWA.overflowX(this.bottomOverflowX());\n\t\tif (this.leftOverflowX() !== this._leftWA.overflowX()) this._leftWA.overflowX(this.leftOverflowX());\n\t\tif (this.topOverflowY() !== this._topWA.overflowY()) this._topWA.overflowY(this.topOverflowY());\n\t\tif (this.rightOverflowY() !== this._rightWA.overflowY()) this._rightWA.overflowY(this.rightOverflowY());\n\t\tif (this.bottomOverflowY() !== this._bottomWA.overflowY()) this._bottomWA.overflowY(this.bottomOverflowY());\n\t\tif (this.leftOverflowY() !== this._leftWA.overflowY()) this._leftWA.overflowY(this.leftOverflowY());\n\t\tthis.element().style(\"width\", `${this.width()}px`).style(\"height\", `${this.height()}px`);\n\t}\n\ttargetNull(w) {\n\t\tif (w) w.target(null);\n\t}\n\texit(domNode, element) {\n\t\tthis.targetNull(this.center());\n\t\tthis.targetNull(this.bottom());\n\t\tthis.targetNull(this.right());\n\t\tthis.targetNull(this.left());\n\t\tthis.targetNull(this.top());\n\t\tsuper.exit(domNode, element);\n\t}\n\tswap(sectionA, sectionB) {\n\t\tconst a$1 = this[sectionA]();\n\t\tconst b = this[sectionB]();\n\t\tthis.targetNull(a$1);\n\t\tthis.targetNull(b);\n\t\tthis[`_${sectionA}WA`].widget(null);\n\t\tthis[`_${sectionB}WA`].widget(null);\n\t\tthis[sectionA](b);\n\t\tthis[sectionB](a$1);\n\t\treturn this;\n\t}\n\trender(callback) {\n\t\treturn super.render((w) => {\n\t\t\tif (this._topWA) this._topWA.widget(this.top()).overlay(this.topOverlay()).render(true).then(async (topBBox) => {\n\t\t\t\tconst bottomBBox = await this._bottomWA.widget(this.bottom()).render(true, void 0, this.width());\n\t\t\t\tconst availableHeight = this.height() - (topBBox.height + bottomBBox.height);\n\t\t\t\tconst leftBBox = await this._leftWA.widget(this.left()).render(true, availableHeight);\n\t\t\t\tconst rightBBox = await this._rightWA.widget(this.right()).render(true, availableHeight);\n\t\t\t\tif (this.bottomHeight_exists()) bottomBBox.height = this.bottomHeight();\n\t\t\t\tconst bodyWidth = this.width() - (leftBBox.width + rightBBox.width);\n\t\t\t\tconst bodyHeight = this.height() - (topBBox.height + bottomBBox.height);\n\t\t\t\tconst centerOverflowX = this.centerOverflowX();\n\t\t\t\tconst centerOverflowY = this.centerOverflowY();\n\t\t\t\tconst scrollCenterX = [\"auto\", \"scroll\"].indexOf(centerOverflowX) !== -1;\n\t\t\t\tconst scrollCenterY = [\"auto\", \"scroll\"].indexOf(centerOverflowY) !== -1;\n\t\t\t\tif (scrollCenterX || scrollCenterY) this._centerWA.overflowX(this.centerOverflowX()).overflowY(this.centerOverflowY()).widget(this.center()).resize({\n\t\t\t\t\twidth: bodyWidth,\n\t\t\t\t\theight: bodyHeight\n\t\t\t\t}).render();\n\t\t\t\tthis._bodyElement.style(\"height\", `${bodyHeight}px`);\n\t\t\t\tconst promises = [\n\t\t\t\t\tthis._topWA.overflowX(this.topOverflowX()).overflowY(this.topOverflowY()).resize({\n\t\t\t\t\t\twidth: this.width(),\n\t\t\t\t\t\theight: topBBox.height\n\t\t\t\t\t}).render(),\n\t\t\t\t\tthis._leftWA.overflowX(this.leftOverflowX()).overflowY(this.leftOverflowY()).resize({\n\t\t\t\t\t\twidth: leftBBox.width,\n\t\t\t\t\t\theight: bodyHeight\n\t\t\t\t\t}).render(),\n\t\t\t\t\tthis._rightWA.overflowX(this.rightOverflowX()).overflowY(this.rightOverflowY()).resize({\n\t\t\t\t\t\twidth: rightBBox.width,\n\t\t\t\t\t\theight: bodyHeight\n\t\t\t\t\t}).render(),\n\t\t\t\t\tthis._centerWA.overflowX(this.centerOverflowX()).overflowY(this.centerOverflowY()).widget(this.center()).resize({\n\t\t\t\t\t\twidth: bodyWidth,\n\t\t\t\t\t\theight: bodyHeight\n\t\t\t\t\t}).render(),\n\t\t\t\t\tthis._bottomWA.overflowX(this.bottomOverflowX()).overflowY(this.bottomOverflowY()).resize({\n\t\t\t\t\t\twidth: this.width(),\n\t\t\t\t\t\theight: bottomBBox.height\n\t\t\t\t\t}).render()\n\t\t\t\t];\n\t\t\t\tPromise.all(promises).then((promises$1) => {\n\t\t\t\t\tif (callback) callback(this);\n\t\t\t\t});\n\t\t\t});\n\t\t\telse if (callback) callback(this);\n\t\t});\n\t}\n};\nBorder2.prototype._class += \" layout_Border2\";\nBorder2.prototype.publish(\"showTop\", true, \"boolean\", \"If true, top widget adapter will display\");\nBorder2.prototype.publish(\"showRight\", true, \"boolean\", \"If true, right widget adapter will display\");\nBorder2.prototype.publish(\"showBottom\", true, \"boolean\", \"If true, bottom widget adapter will display\");\nBorder2.prototype.publish(\"showLeft\", true, \"boolean\", \"If true, left widget adapter will display\");\nBorder2.prototype.publish(\"topOverflowX\", \"visible\", \"set\", \"Sets the overflow-x css style for the top widget adapter\", [\n\t\"hidden\",\n\t\"scroll\",\n\t\"visible\",\n\t\"auto\"\n]);\nBorder2.prototype.publish(\"rightOverflowX\", \"visible\", \"set\", \"Sets the overflow-x css style for the right widget adapter\", [\n\t\"hidden\",\n\t\"scroll\",\n\t\"visible\",\n\t\"auto\"\n]);\nBorder2.prototype.publish(\"bottomOverflowX\", \"visible\", \"set\", \"Sets the overflow-x css style for the bottom widget adapter\", [\n\t\"hidden\",\n\t\"scroll\",\n\t\"visible\",\n\t\"auto\"\n]);\nBorder2.prototype.publish(\"leftOverflowX\", \"visible\", \"set\", \"Sets the overflow-x css style for the left widget adapter\", [\n\t\"hidden\",\n\t\"scroll\",\n\t\"visible\",\n\t\"auto\"\n]);\nBorder2.prototype.publish(\"centerOverflowX\", \"visible\", \"set\", \"Sets the overflow-x css style for the center widget adapter\", [\n\t\"hidden\",\n\t\"scroll\",\n\t\"visible\",\n\t\"auto\"\n]);\nBorder2.prototype.publish(\"topOverflowY\", \"visible\", \"set\", \"Sets the overflow-y css style for the top widget adapter\", [\n\t\"hidden\",\n\t\"scroll\",\n\t\"visible\",\n\t\"auto\"\n]);\nBorder2.prototype.publish(\"rightOverflowY\", \"visible\", \"set\", \"Sets the overflow-y css style for the right widget adapter\", [\n\t\"hidden\",\n\t\"scroll\",\n\t\"visible\",\n\t\"auto\"\n]);\nBorder2.prototype.publish(\"bottomOverflowY\", \"visible\", \"set\", \"Sets the overflow-y css style for the bottom widget adapter\", [\n\t\"hidden\",\n\t\"scroll\",\n\t\"visible\",\n\t\"auto\"\n]);\nBorder2.prototype.publish(\"leftOverflowY\", \"visible\", \"set\", \"Sets the overflow-y css style for the left widget adapter\", [\n\t\"hidden\",\n\t\"scroll\",\n\t\"visible\",\n\t\"auto\"\n]);\nBorder2.prototype.publish(\"centerOverflowY\", \"visible\", \"set\", \"Sets the overflow-y css style for the center widget adapter\", [\n\t\"hidden\",\n\t\"scroll\",\n\t\"visible\",\n\t\"auto\"\n]);\nBorder2.prototype.publish(\"top\", null, \"widget\", \"Top Widget\", void 0, { render: false });\nBorder2.prototype.publish(\"topOverlay\", false, \"boolean\", \"Overlay Top Widget\");\nBorder2.prototype.publish(\"left\", null, \"widget\", \"Left Widget\", void 0, { render: false });\nBorder2.prototype.publish(\"center\", null, \"widget\", \"Center Widget\", void 0, { render: false });\nBorder2.prototype.publish(\"right\", null, \"widget\", \"Right Widget\", void 0, { render: false });\nBorder2.prototype.publish(\"bottom\", null, \"widget\", \"Bottom Widget\", void 0, { render: false });\nBorder2.prototype.publish(\"bottomHeight\", null, \"number\", \"Bottom Fixed Height\", void 0, { optional: true });\n\n//#endregion\n//#region src/Carousel.ts\nvar Carousel = class extends HTMLWidget {\n\t_prevActive = 0;\n\t_root;\n\tactiveWidget() {\n\t\treturn this.widgets()[this.active()];\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tthis._root = element.append(\"div\").attr(\"id\", `${this.id()}_root`);\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t\tconst active = this.active();\n\t\tconst width = this.width();\n\t\tthis._root.style(\"width\", `${width}px`).style(\"height\", `${this.height()}px`);\n\t\tconst widgetElements = this._root.selectAll(`#${this.id()}_root > .carouselItem`).data(this.widgets(), (d) => d.id());\n\t\tconst update = widgetElements.enter().append(\"div\").attr(\"class\", \"carouselItem\").each(function(w) {\n\t\t\tw.target(this);\n\t\t}).merge(widgetElements).style(\"left\", (d, i) => `${(i - this._prevActive) * width}px`).style(\"width\", `${width}px`);\n\t\tif (this._prevActive !== active) {\n\t\t\tupdate.style(\"display\", (d, i) => i === this._prevActive || i === active ? null : \"none\").transition().duration(this.transitionDuration()).style(\"left\", (d, i) => `${(i - active) * width}px`).on(\"end\", function(d, i) {\n\t\t\t\tselect(this).style(\"display\", () => i === active ? null : \"none\");\n\t\t\t});\n\t\t\tthis._prevActive = active;\n\t\t}\n\t\twidgetElements.exit().each(function(w) {\n\t\t\tw.target(null);\n\t\t}).remove();\n\t}\n\texit(domNode, element) {\n\t\tthis.widgets().forEach((w) => w.target(null));\n\t\tsuper.exit(domNode, element);\n\t}\n\trender(callback) {\n\t\treturn super.render((w) => {\n\t\t\tif (!this.visible() || this.isDOMHidden()) {\n\t\t\t\tif (callback) callback(w);\n\t\t\t} else {\n\t\t\t\tconst aw = this.activeWidget();\n\t\t\t\tif (aw) aw.resize(this.size()).render((w2) => {\n\t\t\t\t\tif (callback) callback(w);\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n};\nCarousel.prototype._class += \" layout_Carousel\";\nCarousel.prototype.publish(\"widgets\", [], \"widgetArray\", \"Widgets\", null, { render: false });\nCarousel.prototype.publish(\"active\", 0, \"number\", \"Active widget\");\nCarousel.prototype.publish(\"transitionDuration\", 500, \"number\", \"Transition duration\");\n\n//#endregion\n//#region ../../node_modules/d3-path/src/path.js\nvar pi$1 = Math.PI, tau$1 = 2 * pi$1, epsilon = 1e-6, tauEpsilon = tau$1 - epsilon;\nfunction Path() {\n\tthis._x0 = this._y0 = this._x1 = this._y1 = null;\n\tthis._ = \"\";\n}\nfunction path() {\n\treturn new Path();\n}\nPath.prototype = path.prototype = {\n\tconstructor: Path,\n\tmoveTo: function(x, y) {\n\t\tthis._ += \"M\" + (this._x0 = this._x1 = +x) + \",\" + (this._y0 = this._y1 = +y);\n\t},\n\tclosePath: function() {\n\t\tif (this._x1 !== null) {\n\t\t\tthis._x1 = this._x0, this._y1 = this._y0;\n\t\t\tthis._ += \"Z\";\n\t\t}\n\t},\n\tlineTo: function(x, y) {\n\t\tthis._ += \"L\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n\t},\n\tquadraticCurveTo: function(x1, y1, x, y) {\n\t\tthis._ += \"Q\" + +x1 + \",\" + +y1 + \",\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n\t},\n\tbezierCurveTo: function(x1, y1, x2, y2, x, y) {\n\t\tthis._ += \"C\" + +x1 + \",\" + +y1 + \",\" + +x2 + \",\" + +y2 + \",\" + (this._x1 = +x) + \",\" + (this._y1 = +y);\n\t},\n\tarcTo: function(x1, y1, x2, y2, r) {\n\t\tx1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r;\n\t\tvar x0 = this._x1, y0 = this._y1, x21 = x2 - x1, y21 = y2 - y1, x01 = x0 - x1, y01 = y0 - y1, l01_2 = x01 * x01 + y01 * y01;\n\t\tif (r < 0) throw new Error(\"negative radius: \" + r);\n\t\tif (this._x1 === null) this._ += \"M\" + (this._x1 = x1) + \",\" + (this._y1 = y1);\n\t\telse if (!(l01_2 > epsilon));\n\t\telse if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) this._ += \"L\" + (this._x1 = x1) + \",\" + (this._y1 = y1);\n\t\telse {\n\t\t\tvar x20 = x2 - x0, y20 = y2 - y0, l21_2 = x21 * x21 + y21 * y21, l20_2 = x20 * x20 + y20 * y20, l21 = Math.sqrt(l21_2), l01 = Math.sqrt(l01_2), l = r * Math.tan((pi$1 - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2), t01 = l / l01, t21 = l / l21;\n\t\t\tif (Math.abs(t01 - 1) > epsilon) this._ += \"L\" + (x1 + t01 * x01) + \",\" + (y1 + t01 * y01);\n\t\t\tthis._ += \"A\" + r + \",\" + r + \",0,0,\" + +(y01 * x20 > x01 * y20) + \",\" + (this._x1 = x1 + t21 * x21) + \",\" + (this._y1 = y1 + t21 * y21);\n\t\t}\n\t},\n\tarc: function(x, y, r, a0, a1, ccw) {\n\t\tx = +x, y = +y, r = +r, ccw = !!ccw;\n\t\tvar dx = r * Math.cos(a0), dy = r * Math.sin(a0), x0 = x + dx, y0 = y + dy, cw = 1 ^ ccw, da = ccw ? a0 - a1 : a1 - a0;\n\t\tif (r < 0) throw new Error(\"negative radius: \" + r);\n\t\tif (this._x1 === null) this._ += \"M\" + x0 + \",\" + y0;\n\t\telse if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) this._ += \"L\" + x0 + \",\" + y0;\n\t\tif (!r) return;\n\t\tif (da < 0) da = da % tau$1 + tau$1;\n\t\tif (da > tauEpsilon) this._ += \"A\" + r + \",\" + r + \",0,1,\" + cw + \",\" + (x - dx) + \",\" + (y - dy) + \"A\" + r + \",\" + r + \",0,1,\" + cw + \",\" + (this._x1 = x0) + \",\" + (this._y1 = y0);\n\t\telse if (da > epsilon) this._ += \"A\" + r + \",\" + r + \",0,\" + +(da >= pi$1) + \",\" + cw + \",\" + (this._x1 = x + r * Math.cos(a1)) + \",\" + (this._y1 = y + r * Math.sin(a1));\n\t},\n\trect: function(x, y, w, h) {\n\t\tthis._ += \"M\" + (this._x0 = this._x1 = +x) + \",\" + (this._y0 = this._y1 = +y) + \"h\" + +w + \"v\" + +h + \"h\" + -w + \"Z\";\n\t},\n\ttoString: function() {\n\t\treturn this._;\n\t}\n};\nvar path_default = path;\n\n//#endregion\n//#region ../../node_modules/d3-shape/src/constant.js\nfunction constant_default(x) {\n\treturn function constant() {\n\t\treturn x;\n\t};\n}\n\n//#endregion\n//#region ../../node_modules/d3-shape/src/math.js\nvar pi = Math.PI;\nvar halfPi = pi / 2;\nvar tau = 2 * pi;\n\n//#endregion\n//#region ../../node_modules/d3-shape/src/symbol/circle.js\nvar circle_default = { draw: function(context, size) {\n\tvar r = Math.sqrt(size / pi);\n\tcontext.moveTo(r, 0);\n\tcontext.arc(0, 0, r, 0, tau);\n} };\n\n//#endregion\n//#region ../../node_modules/d3-shape/src/symbol/cross.js\nvar cross_default = { draw: function(context, size) {\n\tvar r = Math.sqrt(size / 5) / 2;\n\tcontext.moveTo(-3 * r, -r);\n\tcontext.lineTo(-r, -r);\n\tcontext.lineTo(-r, -3 * r);\n\tcontext.lineTo(r, -3 * r);\n\tcontext.lineTo(r, -r);\n\tcontext.lineTo(3 * r, -r);\n\tcontext.lineTo(3 * r, r);\n\tcontext.lineTo(r, r);\n\tcontext.lineTo(r, 3 * r);\n\tcontext.lineTo(-r, 3 * r);\n\tcontext.lineTo(-r, r);\n\tcontext.lineTo(-3 * r, r);\n\tcontext.closePath();\n} };\n\n//#endregion\n//#region ../../node_modules/d3-shape/src/symbol/diamond.js\nvar tan30 = Math.sqrt(1 / 3), tan30_2 = tan30 * 2;\nvar diamond_default = { draw: function(context, size) {\n\tvar y = Math.sqrt(size / tan30_2), x = y * tan30;\n\tcontext.moveTo(0, -y);\n\tcontext.lineTo(x, 0);\n\tcontext.lineTo(0, y);\n\tcontext.lineTo(-x, 0);\n\tcontext.closePath();\n} };\n\n//#endregion\n//#region ../../node_modules/d3-shape/src/symbol/star.js\nvar ka = .8908130915292852, kr = Math.sin(pi / 10) / Math.sin(7 * pi / 10), kx = Math.sin(tau / 10) * kr, ky = -Math.cos(tau / 10) * kr;\nvar star_default = { draw: function(context, size) {\n\tvar r = Math.sqrt(size * ka), x = kx * r, y = ky * r;\n\tcontext.moveTo(0, -r);\n\tcontext.lineTo(x, y);\n\tfor (var i = 1; i < 5; ++i) {\n\t\tvar a$1 = tau * i / 5, c$1 = Math.cos(a$1), s$1 = Math.sin(a$1);\n\t\tcontext.lineTo(s$1 * r, -c$1 * r);\n\t\tcontext.lineTo(c$1 * x - s$1 * y, s$1 * x + c$1 * y);\n\t}\n\tcontext.closePath();\n} };\n\n//#endregion\n//#region ../../node_modules/d3-shape/src/symbol/square.js\nvar square_default = { draw: function(context, size) {\n\tvar w = Math.sqrt(size), x = -w / 2;\n\tcontext.rect(x, x, w, w);\n} };\n\n//#endregion\n//#region ../../node_modules/d3-shape/src/symbol/triangle.js\nvar sqrt3 = Math.sqrt(3);\nvar triangle_default = { draw: function(context, size) {\n\tvar y = -Math.sqrt(size / (sqrt3 * 3));\n\tcontext.moveTo(0, y * 2);\n\tcontext.lineTo(-sqrt3 * y, -y);\n\tcontext.lineTo(sqrt3 * y, -y);\n\tcontext.closePath();\n} };\n\n//#endregion\n//#region ../../node_modules/d3-shape/src/symbol/wye.js\nvar c = -.5, s = Math.sqrt(3) / 2, k = 1 / Math.sqrt(12), a = (k / 2 + 1) * 3;\nvar wye_default = { draw: function(context, size) {\n\tvar r = Math.sqrt(size / a), x0 = r / 2, y0 = r * k, x1 = x0, y1 = r * k + r, x2 = -x1, y2 = y1;\n\tcontext.moveTo(x0, y0);\n\tcontext.lineTo(x1, y1);\n\tcontext.lineTo(x2, y2);\n\tcontext.lineTo(c * x0 - s * y0, s * x0 + c * y0);\n\tcontext.lineTo(c * x1 - s * y1, s * x1 + c * y1);\n\tcontext.lineTo(c * x2 - s * y2, s * x2 + c * y2);\n\tcontext.lineTo(c * x0 + s * y0, c * y0 - s * x0);\n\tcontext.lineTo(c * x1 + s * y1, c * y1 - s * x1);\n\tcontext.lineTo(c * x2 + s * y2, c * y2 - s * x2);\n\tcontext.closePath();\n} };\n\n//#endregion\n//#region ../../node_modules/d3-shape/src/symbol.js\nfunction symbol_default() {\n\tvar type = constant_default(circle_default), size = constant_default(64), context = null;\n\tfunction symbol() {\n\t\tvar buffer;\n\t\tif (!context) context = buffer = path_default();\n\t\ttype.apply(this, arguments).draw(context, +size.apply(this, arguments));\n\t\tif (buffer) return context = null, buffer + \"\" || null;\n\t}\n\tsymbol.type = function(_) {\n\t\treturn arguments.length ? (type = typeof _ === \"function\" ? _ : constant_default(_), symbol) : type;\n\t};\n\tsymbol.size = function(_) {\n\t\treturn arguments.length ? (size = typeof _ === \"function\" ? _ : constant_default(+_), symbol) : size;\n\t};\n\tsymbol.context = function(_) {\n\t\treturn arguments.length ? (context = _ == null ? null : _, symbol) : context;\n\t};\n\treturn symbol;\n}\n\n//#endregion\n//#region ../../node_modules/d3-svg-legend/indexRollupNext.js\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function(obj) {\n\treturn typeof obj;\n} : function(obj) {\n\treturn obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\nvar d3_identity = function d3_identity$1(d) {\n\treturn d;\n};\nvar d3_reverse = function d3_reverse$1(arr) {\n\tvar mirror = [];\n\tfor (var i = 0, l = arr.length; i < l; i++) mirror[i] = arr[l - i - 1];\n\treturn mirror;\n};\nvar d3_textWrapping = function d3_textWrapping$1(text, width) {\n\ttext.each(function() {\n\t\tvar text$1 = select(this), words = text$1.text().split(/\\s+/).reverse(), word, line = [], lineHeight = 1.2;\n\t\ttext$1.attr(\"y\");\n\t\tvar dy = parseFloat(text$1.attr(\"dy\")) || 0, tspan = text$1.text(null).append(\"tspan\").attr(\"x\", 0).attr(\"dy\", dy + \"em\");\n\t\twhile (word = words.pop()) {\n\t\t\tline.push(word);\n\t\t\ttspan.text(line.join(\" \"));\n\t\t\tif (tspan.node().getComputedTextLength() > width && line.length > 1) {\n\t\t\t\tline.pop();\n\t\t\t\ttspan.text(line.join(\" \"));\n\t\t\t\tline = [word];\n\t\t\t\ttspan = text$1.append(\"tspan\").attr(\"x\", 0).attr(\"dy\", lineHeight + dy + \"em\").text(word);\n\t\t\t}\n\t\t}\n\t});\n};\nvar d3_mergeLabels = function d3_mergeLabels$1() {\n\tvar gen = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];\n\tvar labels = arguments[1];\n\tvar domain = arguments[2];\n\tvar range = arguments[3];\n\tvar labelDelimiter = arguments[4];\n\tif ((typeof labels === \"undefined\" ? \"undefined\" : _typeof(labels)) === \"object\") {\n\t\tif (labels.length === 0) return gen;\n\t\tvar i = labels.length;\n\t\tfor (; i < gen.length; i++) labels.push(gen[i]);\n\t\treturn labels;\n\t} else if (typeof labels === \"function\") {\n\t\tvar customLabels = [];\n\t\tvar genLength = gen.length;\n\t\tfor (var _i = 0; _i < genLength; _i++) customLabels.push(labels({\n\t\t\ti: _i,\n\t\t\tgenLength,\n\t\t\tgeneratedLabels: gen,\n\t\t\tdomain,\n\t\t\trange,\n\t\t\tlabelDelimiter\n\t\t}));\n\t\treturn customLabels;\n\t}\n\treturn gen;\n};\nvar d3_linearLegend = function d3_linearLegend$1(scale, cells, labelFormat) {\n\tvar data = [];\n\tif (cells.length > 1) data = cells;\n\telse {\n\t\tvar domain = scale.domain(), increment = (domain[domain.length - 1] - domain[0]) / (cells - 1);\n\t\tvar i = 0;\n\t\tfor (; i < cells; i++) data.push(domain[0] + i * increment);\n\t}\n\tvar labels = data.map(labelFormat);\n\treturn {\n\t\tdata,\n\t\tlabels,\n\t\tfeature: function feature(d) {\n\t\t\treturn scale(d);\n\t\t}\n\t};\n};\nvar d3_quantLegend = function d3_quantLegend$1(scale, labelFormat, labelDelimiter) {\n\tvar labels = scale.range().map(function(d) {\n\t\tvar invert = scale.invertExtent(d);\n\t\treturn labelFormat(invert[0]) + \" \" + labelDelimiter + \" \" + labelFormat(invert[1]);\n\t});\n\treturn {\n\t\tdata: scale.range(),\n\t\tlabels,\n\t\tfeature: d3_identity\n\t};\n};\nvar d3_ordinalLegend = function d3_ordinalLegend$1(scale) {\n\treturn {\n\t\tdata: scale.domain(),\n\t\tlabels: scale.domain(),\n\t\tfeature: function feature(d) {\n\t\t\treturn scale(d);\n\t\t}\n\t};\n};\nvar d3_cellOver = function d3_cellOver$1(cellDispatcher, d, obj) {\n\tcellDispatcher.call(\"cellover\", obj, d);\n};\nvar d3_cellOut = function d3_cellOut$1(cellDispatcher, d, obj) {\n\tcellDispatcher.call(\"cellout\", obj, d);\n};\nvar d3_cellClick = function d3_cellClick$1(cellDispatcher, d, obj) {\n\tcellDispatcher.call(\"cellclick\", obj, d);\n};\nvar helper = {\n\td3_drawShapes: function d3_drawShapes(shape, shapes, shapeHeight, shapeWidth, shapeRadius, path$1) {\n\t\tif (shape === \"rect\") shapes.attr(\"height\", shapeHeight).attr(\"width\", shapeWidth);\n\t\telse if (shape === \"circle\") shapes.attr(\"r\", shapeRadius);\n\t\telse if (shape === \"line\") shapes.attr(\"x1\", 0).attr(\"x2\", shapeWidth).attr(\"y1\", 0).attr(\"y2\", 0);\n\t\telse if (shape === \"path\") shapes.attr(\"d\", path$1);\n\t},\n\td3_addText: function d3_addText(svg, enter, labels, classPrefix, labelWidth) {\n\t\tenter.append(\"text\").attr(\"class\", classPrefix + \"label\");\n\t\tvar text = svg.selectAll(\"g.\" + classPrefix + \"cell text.\" + classPrefix + \"label\").data(labels).text(d3_identity);\n\t\tif (labelWidth) svg.selectAll(\"g.\" + classPrefix + \"cell text.\" + classPrefix + \"label\").call(d3_textWrapping, labelWidth);\n\t\treturn text;\n\t},\n\td3_calcType: function d3_calcType(scale, ascending, cells, labels, labelFormat, labelDelimiter) {\n\t\tvar type = scale.invertExtent ? d3_quantLegend(scale, labelFormat, labelDelimiter) : scale.ticks ? d3_linearLegend(scale, cells, labelFormat) : d3_ordinalLegend(scale);\n\t\tvar range = scale.range && scale.range() || scale.domain();\n\t\ttype.labels = d3_mergeLabels(type.labels, labels, scale.domain(), range, labelDelimiter);\n\t\tif (ascending) {\n\t\t\ttype.labels = d3_reverse(type.labels);\n\t\t\ttype.data = d3_reverse(type.data);\n\t\t}\n\t\treturn type;\n\t},\n\td3_filterCells: function d3_filterCells(type, cellFilter) {\n\t\tvar filterCells = type.data.map(function(d, i) {\n\t\t\treturn {\n\t\t\t\tdata: d,\n\t\t\t\tlabel: type.labels[i]\n\t\t\t};\n\t\t}).filter(cellFilter);\n\t\tvar dataValues = filterCells.map(function(d) {\n\t\t\treturn d.data;\n\t\t});\n\t\tvar labelValues = filterCells.map(function(d) {\n\t\t\treturn d.label;\n\t\t});\n\t\ttype.data = type.data.filter(function(d) {\n\t\t\treturn dataValues.indexOf(d) !== -1;\n\t\t});\n\t\ttype.labels = type.labels.filter(function(d) {\n\t\t\treturn labelValues.indexOf(d) !== -1;\n\t\t});\n\t\treturn type;\n\t},\n\td3_placement: function d3_placement(orient, cell, cellTrans, text, textTrans, labelAlign) {\n\t\tcell.attr(\"transform\", cellTrans);\n\t\ttext.attr(\"transform\", textTrans);\n\t\tif (orient === \"horizontal\") text.style(\"text-anchor\", labelAlign);\n\t},\n\td3_addEvents: function d3_addEvents(cells, dispatcher) {\n\t\tcells.on(\"mouseover.legend\", function(d) {\n\t\t\td3_cellOver(dispatcher, d, this);\n\t\t}).on(\"mouseout.legend\", function(d) {\n\t\t\td3_cellOut(dispatcher, d, this);\n\t\t}).on(\"click.legend\", function(d) {\n\t\t\td3_cellClick(dispatcher, d, this);\n\t\t});\n\t},\n\td3_title: function d3_title(svg, title, classPrefix, titleWidth) {\n\t\tif (title !== \"\") {\n\t\t\tsvg.selectAll(\"text.\" + classPrefix + \"legendTitle\").data([title]).enter().append(\"text\").attr(\"class\", classPrefix + \"legendTitle\");\n\t\t\tsvg.selectAll(\"text.\" + classPrefix + \"legendTitle\").text(title);\n\t\t\tif (titleWidth) svg.selectAll(\"text.\" + classPrefix + \"legendTitle\").call(d3_textWrapping, titleWidth);\n\t\t\tvar cellsSvg = svg.select(\".\" + classPrefix + \"legendCells\");\n\t\t\tvar yOffset = svg.select(\".\" + classPrefix + \"legendTitle\").nodes().map(function(d) {\n\t\t\t\treturn d.getBBox().height;\n\t\t\t})[0], xOffset = -cellsSvg.nodes().map(function(d) {\n\t\t\t\treturn d.getBBox().x;\n\t\t\t})[0];\n\t\t\tcellsSvg.attr(\"transform\", \"translate(\" + xOffset + \",\" + yOffset + \")\");\n\t\t}\n\t},\n\td3_defaultLocale: {\n\t\tformat,\n\t\tformatPrefix\n\t},\n\td3_defaultFormatSpecifier: \".01f\",\n\td3_defaultDelimiter: \"to\"\n};\nfunction color() {\n\tvar scale = scaleLinear(), shape = \"rect\", shapeWidth = 15, shapeHeight = 15, shapeRadius = 10, shapePadding = 2, cells = [5], cellFilter = void 0, labels = [], classPrefix = \"\", useClass = false, title = \"\", locale = helper.d3_defaultLocale, specifier = helper.d3_defaultFormatSpecifier, labelOffset = 10, labelAlign = \"middle\", labelDelimiter = helper.d3_defaultDelimiter, labelWrap = void 0, orient = \"vertical\", ascending = false, path$1 = void 0, titleWidth = void 0, legendDispatcher = dispatch(\"cellover\", \"cellout\", \"cellclick\");\n\tfunction legend(svg) {\n\t\tvar type = helper.d3_calcType(scale, ascending, cells, labels, locale.format(specifier), labelDelimiter);\n\t\tsvg.selectAll(\"g\").data([scale]).enter().append(\"g\").attr(\"class\", classPrefix + \"legendCells\");\n\t\tif (cellFilter) helper.d3_filterCells(type, cellFilter);\n\t\tvar cell = svg.select(\".\" + classPrefix + \"legendCells\").selectAll(\".\" + classPrefix + \"cell\").data(type.data);\n\t\tvar cellEnter = cell.enter().append(\"g\").attr(\"class\", classPrefix + \"cell\");\n\t\tcellEnter.append(shape).attr(\"class\", classPrefix + \"swatch\");\n\t\tvar shapes = svg.selectAll(\"g.\" + classPrefix + \"cell \" + shape + \".\" + classPrefix + \"swatch\").data(type.data);\n\t\thelper.d3_addEvents(cellEnter, legendDispatcher);\n\t\tcell.exit().transition().style(\"opacity\", 0).remove();\n\t\tshapes.exit().transition().style(\"opacity\", 0).remove();\n\t\tshapes = shapes.merge(shapes);\n\t\thelper.d3_drawShapes(shape, shapes, shapeHeight, shapeWidth, shapeRadius, path$1);\n\t\tvar text = helper.d3_addText(svg, cellEnter, type.labels, classPrefix, labelWrap);\n\t\tcell = cellEnter.merge(cell);\n\t\tvar textSize = text.nodes().map(function(d) {\n\t\t\treturn d.getBBox();\n\t\t}), shapeSize = shapes.nodes().map(function(d) {\n\t\t\treturn d.getBBox();\n\t\t});\n\t\tif (!useClass) if (shape == \"line\") shapes.style(\"stroke\", type.feature);\n\t\telse shapes.style(\"fill\", type.feature);\n\t\telse shapes.attr(\"class\", function(d) {\n\t\t\treturn classPrefix + \"swatch \" + type.feature(d);\n\t\t});\n\t\tvar cellTrans = void 0, textTrans = void 0, textAlign = labelAlign == \"start\" ? 0 : labelAlign == \"middle\" ? .5 : 1;\n\t\tif (orient === \"vertical\") (function() {\n\t\t\tvar cellSize = textSize.map(function(d, i) {\n\t\t\t\treturn Math.max(d.height, shapeSize[i].height);\n\t\t\t});\n\t\t\tcellTrans = function cellTrans$1(d, i) {\n\t\t\t\treturn \"translate(0, \" + (sum(cellSize.slice(0, i)) + i * shapePadding) + \")\";\n\t\t\t};\n\t\t\ttextTrans = function textTrans$1(d, i) {\n\t\t\t\treturn \"translate( \" + (shapeSize[i].width + shapeSize[i].x + labelOffset) + \", \" + (shapeSize[i].y + shapeSize[i].height / 2 + 5) + \")\";\n\t\t\t};\n\t\t})();\n\t\telse if (orient === \"horizontal\") {\n\t\t\tcellTrans = function cellTrans$1(d, i) {\n\t\t\t\treturn \"translate(\" + i * (shapeSize[i].width + shapePadding) + \",0)\";\n\t\t\t};\n\t\t\ttextTrans = function textTrans$1(d, i) {\n\t\t\t\treturn \"translate(\" + (shapeSize[i].width * textAlign + shapeSize[i].x) + \",\\n \" + (shapeSize[i].height + shapeSize[i].y + labelOffset + 8) + \")\";\n\t\t\t};\n\t\t}\n\t\thelper.d3_placement(orient, cell, cellTrans, text, textTrans, labelAlign);\n\t\thelper.d3_title(svg, title, classPrefix, titleWidth);\n\t\tcell.transition().style(\"opacity\", 1);\n\t}\n\tlegend.scale = function(_) {\n\t\tif (!arguments.length) return scale;\n\t\tscale = _;\n\t\treturn legend;\n\t};\n\tlegend.cells = function(_) {\n\t\tif (!arguments.length) return cells;\n\t\tif (_.length > 1 || _ >= 2) cells = _;\n\t\treturn legend;\n\t};\n\tlegend.cellFilter = function(_) {\n\t\tif (!arguments.length) return cellFilter;\n\t\tcellFilter = _;\n\t\treturn legend;\n\t};\n\tlegend.shape = function(_, d) {\n\t\tif (!arguments.length) return shape;\n\t\tif (_ == \"rect\" || _ == \"circle\" || _ == \"line\" || _ == \"path\" && typeof d === \"string\") {\n\t\t\tshape = _;\n\t\t\tpath$1 = d;\n\t\t}\n\t\treturn legend;\n\t};\n\tlegend.shapeWidth = function(_) {\n\t\tif (!arguments.length) return shapeWidth;\n\t\tshapeWidth = +_;\n\t\treturn legend;\n\t};\n\tlegend.shapeHeight = function(_) {\n\t\tif (!arguments.length) return shapeHeight;\n\t\tshapeHeight = +_;\n\t\treturn legend;\n\t};\n\tlegend.shapeRadius = function(_) {\n\t\tif (!arguments.length) return shapeRadius;\n\t\tshapeRadius = +_;\n\t\treturn legend;\n\t};\n\tlegend.shapePadding = function(_) {\n\t\tif (!arguments.length) return shapePadding;\n\t\tshapePadding = +_;\n\t\treturn legend;\n\t};\n\tlegend.labels = function(_) {\n\t\tif (!arguments.length) return labels;\n\t\tlabels = _;\n\t\treturn legend;\n\t};\n\tlegend.labelAlign = function(_) {\n\t\tif (!arguments.length) return labelAlign;\n\t\tif (_ == \"start\" || _ == \"end\" || _ == \"middle\") labelAlign = _;\n\t\treturn legend;\n\t};\n\tlegend.locale = function(_) {\n\t\tif (!arguments.length) return locale;\n\t\tlocale = formatLocale(_);\n\t\treturn legend;\n\t};\n\tlegend.labelFormat = function(_) {\n\t\tif (!arguments.length) return legend.locale().format(specifier);\n\t\tspecifier = formatSpecifier(_);\n\t\treturn legend;\n\t};\n\tlegend.labelOffset = function(_) {\n\t\tif (!arguments.length) return labelOffset;\n\t\tlabelOffset = +_;\n\t\treturn legend;\n\t};\n\tlegend.labelDelimiter = function(_) {\n\t\tif (!arguments.length) return labelDelimiter;\n\t\tlabelDelimiter = _;\n\t\treturn legend;\n\t};\n\tlegend.labelWrap = function(_) {\n\t\tif (!arguments.length) return labelWrap;\n\t\tlabelWrap = _;\n\t\treturn legend;\n\t};\n\tlegend.useClass = function(_) {\n\t\tif (!arguments.length) return useClass;\n\t\tif (_ === true || _ === false) useClass = _;\n\t\treturn legend;\n\t};\n\tlegend.orient = function(_) {\n\t\tif (!arguments.length) return orient;\n\t\t_ = _.toLowerCase();\n\t\tif (_ == \"horizontal\" || _ == \"vertical\") orient = _;\n\t\treturn legend;\n\t};\n\tlegend.ascending = function(_) {\n\t\tif (!arguments.length) return ascending;\n\t\tascending = !!_;\n\t\treturn legend;\n\t};\n\tlegend.classPrefix = function(_) {\n\t\tif (!arguments.length) return classPrefix;\n\t\tclassPrefix = _;\n\t\treturn legend;\n\t};\n\tlegend.title = function(_) {\n\t\tif (!arguments.length) return title;\n\t\ttitle = _;\n\t\treturn legend;\n\t};\n\tlegend.titleWidth = function(_) {\n\t\tif (!arguments.length) return titleWidth;\n\t\ttitleWidth = _;\n\t\treturn legend;\n\t};\n\tlegend.textWrap = function(_) {\n\t\tif (!arguments.length) return textWrap;\n\t\ttextWrap = _;\n\t\treturn legend;\n\t};\n\tlegend.on = function() {\n\t\tvar value = legendDispatcher.on.apply(legendDispatcher, arguments);\n\t\treturn value === legendDispatcher ? legend : value;\n\t};\n\treturn legend;\n}\n\n//#endregion\n//#region src/Legend.ts\nvar Legend = class extends SVGWidget {\n\t_owner;\n\t_targetWidget;\n\t_targetWidgetMonitor;\n\t_legendOrdinal;\n\t_disabled = [];\n\t_symbolTypeMap = {\n\t\t\"circle\": circle_default,\n\t\t\"cross\": cross_default,\n\t\t\"diamond\": diamond_default,\n\t\t\"square\": square_default,\n\t\t\"star\": star_default,\n\t\t\"triangle\": triangle_default,\n\t\t\"wye\": wye_default\n\t};\n\tconstructor(owner) {\n\t\tsuper();\n\t\tthis._owner = owner;\n\t\tthis._drawStartPos = \"origin\";\n\t\tconst context = this;\n\t\tthis._legendOrdinal = color().shape(\"path\", symbol_default().type(circle_default).size(150)()).shapePadding(10).shapeRadius(10).on(\"cellclick\", function(d) {\n\t\t\tcontext.onClick(d, this);\n\t\t}).on(\"cellover\", (d) => {\n\t\t\tcontext.onOver(d, this);\n\t\t}).on(\"cellout\", (d) => {\n\t\t\tcontext.onOut(d, this);\n\t\t});\n\t}\n\tisDisabled(d) {\n\t\tif (typeof d === \"undefined\") return false;\n\t\telse if (typeof d === \"string\") return d.indexOf(\"__\") === 0 || this._disabled.indexOf(d) >= 0;\n\t\telse if (d instanceof Database.Field) return d.id().indexOf(\"__\") === 0 || this._disabled.indexOf(d.id()) >= 0;\n\t\treturn this._disabled.indexOf(d) >= 0;\n\t}\n\tfilteredFields() {\n\t\tswitch (this.dataFamily()) {\n\t\t\tcase \"2D\": return this.fields();\n\t\t\tcase \"ND\": return this.fields().filter((d) => !this.isDisabled(d));\n\t\t}\n\t\treturn this.fields();\n\t}\n\tfilteredColumns() {\n\t\tswitch (this.dataFamily()) {\n\t\t\tcase \"2D\": return this.columns();\n\t\t\tcase \"ND\": return this.columns().filter((d) => !this.isDisabled(d));\n\t\t}\n\t\treturn this.columns();\n\t}\n\tfilteredData() {\n\t\tswitch (this.dataFamily()) {\n\t\t\tcase \"2D\": return this.data().filter((row) => !this.isDisabled(row[0]));\n\t\t\tcase \"ND\":\n\t\t\t\tconst disabledCols = {};\n\t\t\t\tlet anyDisabled = false;\n\t\t\t\tthis.columns().forEach((col, idx) => {\n\t\t\t\t\tconst disabled = this.isDisabled(col);\n\t\t\t\t\tdisabledCols[idx] = disabled;\n\t\t\t\t\tif (disabled) anyDisabled = true;\n\t\t\t\t});\n\t\t\t\treturn !anyDisabled ? this.data() : this.data().map((row) => {\n\t\t\t\t\treturn row.filter((cell, idx) => !disabledCols[idx]);\n\t\t\t\t});\n\t\t}\n\t\treturn this.data();\n\t}\n\tisRainbow() {\n\t\tconst widget = this.getWidget();\n\t\treturn widget && widget._palette && widget._palette.type() === \"rainbow\";\n\t}\n\ttargetWidget(_) {\n\t\tif (!arguments.length) return this._targetWidget;\n\t\tthis._targetWidget = _;\n\t\tif (this._targetWidgetMonitor) {\n\t\t\tthis._targetWidgetMonitor.remove();\n\t\t\tdelete this._targetWidgetMonitor;\n\t\t}\n\t\tif (this._targetWidget) {\n\t\t\tconst context = this;\n\t\t\tthis._targetWidgetMonitor = this._targetWidget.monitor(function(key, newProp, oldProp, source) {\n\t\t\t\tswitch (key) {\n\t\t\t\t\tcase \"chart\":\n\t\t\t\t\tcase \"columns\":\n\t\t\t\t\tcase \"data\":\n\t\t\t\t\tcase \"paletteID\":\n\t\t\t\t\t\tcontext.lazyRender();\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn this;\n\t}\n\tgetWidget() {\n\t\tif (this._targetWidget) switch (this._targetWidget.classID()) {\n\t\t\tcase \"composite_MultiChart\": return this._targetWidget.chart();\n\t\t}\n\t\treturn this._targetWidget;\n\t}\n\tgetPalette() {\n\t\tconst widget = this.getWidget();\n\t\tif (widget && widget._palette) switch (widget._palette.type()) {\n\t\t\tcase \"ordinal\": return Palette.ordinal(widget._palette.id());\n\t\t\tcase \"rainbow\": return Palette.rainbow(widget._palette.id());\n\t\t}\n\t\treturn Palette.ordinal(\"default\");\n\t}\n\tgetPaletteType() {\n\t\treturn this.getPalette().type();\n\t}\n\tfillColorFunc() {\n\t\tconst widget = this.getWidget();\n\t\tif (widget && widget.fillColor) {\n\t\t\tif (widget._palette && widget.paletteID && widget._palette.name !== widget.paletteID()) widget._palette = widget._palette.switch(widget.paletteID());\n\t\t\treturn (row, col, sel) => {\n\t\t\t\treturn widget.fillColor(row, col, sel);\n\t\t\t};\n\t\t}\n\t\tconst palette = Palette.ordinal(widget && widget.paletteID ? widget.paletteID() || \"default\" : \"default\");\n\t\treturn (row, col, sel) => {\n\t\t\treturn palette(col);\n\t\t};\n\t}\n\tfillColor(row, col, sel) {\n\t\treturn this.fillColorFunc()(row, col, sel);\n\t}\n\t_g;\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tthis._g = element.append(\"g\").attr(\"class\", \"legendOrdinal\");\n\t}\n\tcalcMetaData() {\n\t\tlet dataArr = [];\n\t\tlet total = 0;\n\t\tlet maxLabelWidth = 0;\n\t\tconst colLength = this.columns().length;\n\t\tif (this._targetWidget) {\n\t\t\tconst columns = this.columns();\n\t\t\tswitch (this.getPaletteType()) {\n\t\t\t\tcase \"ordinal\":\n\t\t\t\t\tconst fillColor = this.fillColorFunc();\n\t\t\t\t\tlet val = 0;\n\t\t\t\t\tswitch (this.dataFamily()) {\n\t\t\t\t\t\tcase \"2D\":\n\t\t\t\t\t\t\tdataArr = this.data().map(function(n, i) {\n\t\t\t\t\t\t\t\tval = this.data()[i].slice(1, colLength).reduce((acc, n$1) => acc + n$1, 0);\n\t\t\t\t\t\t\t\tconst disabled = this.isDisabled(n[0]);\n\t\t\t\t\t\t\t\tif (!disabled) total += val;\n\t\t\t\t\t\t\t\tconst label = n[0] + (!disabled && this.showSeriesTotal() ? ` (${val})` : \"\");\n\t\t\t\t\t\t\t\tconst textSize = this.textSize(label);\n\t\t\t\t\t\t\t\tif (maxLabelWidth < textSize.width) maxLabelWidth = textSize.width;\n\t\t\t\t\t\t\t\treturn [\n\t\t\t\t\t\t\t\t\tfillColor(n, n[0], false),\n\t\t\t\t\t\t\t\t\tn[0],\n\t\t\t\t\t\t\t\t\tlabel\n\t\t\t\t\t\t\t\t];\n\t\t\t\t\t\t\t}, this);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"ND\":\n\t\t\t\t\t\t\tdataArr = this.columns().filter((col) => col.indexOf(\"__\") !== 0).filter(function(n, i) {\n\t\t\t\t\t\t\t\treturn i > 0;\n\t\t\t\t\t\t\t}).map(function(n, i) {\n\t\t\t\t\t\t\t\tval = this.data().reduce((acc, n$1) => acc + n$1[i + 1], 0);\n\t\t\t\t\t\t\t\tconst disabled = this.isDisabled(columns[i + 1]);\n\t\t\t\t\t\t\t\tconst label = n + (!disabled && this.showSeriesTotal() ? ` (${val})` : \"\");\n\t\t\t\t\t\t\t\tif (!disabled) total += val;\n\t\t\t\t\t\t\t\tconst textSize = this.textSize(label);\n\t\t\t\t\t\t\t\tif (maxLabelWidth < textSize.width) maxLabelWidth = textSize.width;\n\t\t\t\t\t\t\t\treturn [\n\t\t\t\t\t\t\t\t\tfillColor(void 0, n, false),\n\t\t\t\t\t\t\t\t\tn,\n\t\t\t\t\t\t\t\t\tlabel\n\t\t\t\t\t\t\t\t];\n\t\t\t\t\t\t\t}, this);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tdataArr = this.columns().map(function(n) {\n\t\t\t\t\t\t\t\treturn [fillColor(void 0, n, false), n];\n\t\t\t\t\t\t\t}, this);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"rainbow\":\n\t\t\t\t\tconst palette = this.getPalette();\n\t\t\t\t\tconst format$1 = format(this.rainbowFormat());\n\t\t\t\t\tconst widget = this.getWidget();\n\t\t\t\t\tconst steps = this.rainbowBins();\n\t\t\t\t\tconst weightMin = widget._dataMinWeight;\n\t\t\t\t\tconst weightMax = widget._dataMaxWeight;\n\t\t\t\t\tconst stepWeightDiff = (weightMax - weightMin) / (steps - 1);\n\t\t\t\t\tdataArr.push([palette(weightMin, weightMin, weightMax), format$1(weightMin)]);\n\t\t\t\t\tfor (let x = 1; x < steps - 1; ++x) {\n\t\t\t\t\t\tlet mid = stepWeightDiff * x;\n\t\t\t\t\t\tif (Math.floor(mid) > parseInt(dataArr[0][1])) mid = Math.floor(mid);\n\t\t\t\t\t\tdataArr.push([palette(mid, weightMin, weightMax), format$1(mid)]);\n\t\t\t\t\t}\n\t\t\t\t\tdataArr.push([palette(weightMax, weightMin, weightMax), format$1(weightMax)]);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn {\n\t\t\tdataArr,\n\t\t\ttotal,\n\t\t\tmaxLabelWidth\n\t\t};\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t\tconst { dataArr, maxLabelWidth, total } = this.calcMetaData();\n\t\tconst radius = this.shapeRadius();\n\t\tconst size = this.radiusToSymbolSize(radius);\n\t\tconst strokeWidth = 1;\n\t\tlet shapePadding = this.itemPadding();\n\t\tif (this.orientation() === \"horizontal\") shapePadding += maxLabelWidth - radius * 2;\n\t\tconst ordinal = scaleOrdinal().domain(dataArr.map((row) => row[1])).range(dataArr.map((row) => row[0]));\n\t\tthis._legendOrdinal.shape(\"path\", symbol_default().type(this._symbolTypeMap[this.symbolType()]).size(size)()).orient(this.orientation()).title(this.title()).labelWrap(this.labelMaxWidth()).labelAlign(this.labelAlign()).shapePadding(shapePadding).scale(ordinal).labels((d) => dataArr[d.i][2]);\n\t\tthis._g.call(this._legendOrdinal);\n\t\tthis.updateDisabled(element, dataArr);\n\t\tconst legendCellsBbox = this._g.select(\".legendCells\").node().getBBox();\n\t\tlet offsetX = Math.abs(legendCellsBbox.x);\n\t\tlet offsetY = Math.abs(legendCellsBbox.y) + strokeWidth;\n\t\tif (this.orientation() === \"horizontal\") {\n\t\t\tif (this.labelAlign() === \"start\") offsetX += strokeWidth;\n\t\t\telse if (this.labelAlign() === \"end\") offsetX -= strokeWidth;\n\t\t\tif (this.width() > legendCellsBbox.width) {\n\t\t\t\tconst extraWidth = this.width() - legendCellsBbox.width;\n\t\t\t\toffsetX += extraWidth / 2;\n\t\t\t}\n\t\t} else if (this.orientation() === \"vertical\") {\n\t\t\toffsetX += strokeWidth;\n\t\t\tif (this._containerSize.height > legendCellsBbox.height) {\n\t\t\t\tconst extraHeight = this.height() - legendCellsBbox.height;\n\t\t\t\toffsetY += extraHeight / 2;\n\t\t\t}\n\t\t}\n\t\tthis._g.attr(\"transform\", `translate(${offsetX}, ${offsetY})`);\n\t\tthis.pos({\n\t\t\tx: 0,\n\t\t\ty: 0\n\t\t});\n\t\tthis._legendOrdinal.labelOffset(this.itemPadding());\n\t\tconst legendTotal = this._g.selectAll(\".legendTotal\").data(dataArr.length && this.showLegendTotal() ? [total] : []);\n\t\tconst totalText = `Total: ${total}`;\n\t\tconst totalOffsetX = -offsetX;\n\t\tconst totalOffsetY = legendCellsBbox.height + this.itemPadding() + strokeWidth;\n\t\tthis.enableOverflowScroll(false);\n\t\tthis.enableOverflow(true);\n\t\tlegendTotal.enter().append(\"text\").classed(\"legendTotal\", true).merge(legendTotal).attr(\"transform\", `translate(${totalOffsetX}, ${totalOffsetY})`).text(totalText);\n\t\tlegendTotal.exit().remove();\n\t}\n\tupdateDisabled(element, dataArr) {\n\t\telement.style(\"cursor\", \"pointer\").selectAll(\"path.swatch\").filter((d, i) => i < dataArr.length).style(\"stroke\", (d, i) => dataArr[i][0]).style(\"fill\", (d, i) => this._disabled.indexOf(d) < 0 ? dataArr[i][0] : \"white\");\n\t}\n\tpostUpdate(domNode, element) {\n\t\tlet w;\n\t\tif (this._boundingBox) {\n\t\t\tw = this._boundingBox.width;\n\t\t\tthis._boundingBox.width = this._size.width;\n\t\t}\n\t\tsuper.postUpdate(domNode, element);\n\t\tif (w !== void 0) this._boundingBox.width = w;\n\t\tthis._parentRelativeDiv.style(\"overflow\", \"hidden\");\n\t}\n\texit(domNode, element) {\n\t\tsuper.exit(domNode, element);\n\t}\n\tradiusToSymbolSize(radius) {\n\t\tconst circleSize = Math.pow(radius, 2) * Math.PI;\n\t\tswitch (this.symbolType()) {\n\t\t\tcase \"star\": return circleSize * .45;\n\t\t\tcase \"triangle\": return circleSize * .65;\n\t\t\tcase \"cross\":\n\t\t\tcase \"diamond\":\n\t\t\tcase \"wye\": return circleSize * .75;\n\t\t\tcase \"circle\": return circleSize;\n\t\t\tcase \"square\": return circleSize * 1.3;\n\t\t}\n\t}\n\tonClick(d, domNode) {\n\t\tswitch (this.getPaletteType()) {\n\t\t\tcase \"ordinal\":\n\t\t\t\tswitch (this.dataFamily()) {\n\t\t\t\t\tcase \"2D\":\n\t\t\t\t\tcase \"ND\":\n\t\t\t\t\t\tconst disabledIdx = this._disabled.indexOf(d);\n\t\t\t\t\t\tif (disabledIdx < 0) this._disabled.push(d);\n\t\t\t\t\t\telse this._disabled.splice(disabledIdx, 1);\n\t\t\t\t\t\tthis._owner.refreshColumns();\n\t\t\t\t\t\tthis._owner.refreshData();\n\t\t\t\t\t\tthis._owner.render();\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t}\n\tonOver(d, domNode) {\n\t\tif (instanceOfIHighlight(this._owner)) switch (this.getPaletteType()) {\n\t\t\tcase \"ordinal\":\n\t\t\t\tswitch (this.dataFamily()) {\n\t\t\t\t\tcase \"2D\":\n\t\t\t\t\tcase \"ND\":\n\t\t\t\t\t\tif (this._disabled.indexOf(d) < 0) this._owner.highlightColumn(d);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t}\n\tonOut(d, domNode) {\n\t\tif (instanceOfIHighlight(this._owner)) switch (this.getPaletteType()) {\n\t\t\tcase \"ordinal\":\n\t\t\t\tswitch (this.dataFamily()) {\n\t\t\t\t\tcase \"2D\":\n\t\t\t\t\tcase \"ND\":\n\t\t\t\t\t\tthis._owner.highlightColumn();\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t}\n\tonDblClick(rowData, rowIdx) {}\n\tonMouseOver(rowData, rowIdx) {}\n\t_containerSize;\n\tresize(_size) {\n\t\tlet retVal;\n\t\tif (this.fitToContent()) {\n\t\t\tthis._containerSize = _size;\n\t\t\tconst bbox = this.getBBox();\n\t\t\tif (_size.width > bbox.width) bbox.width = _size.width;\n\t\t\tif (_size.height > bbox.height) bbox.height = _size.height;\n\t\t\tretVal = super.resize.apply(this, [{ ...bbox }]);\n\t\t} else retVal = super.resize.apply(this, arguments);\n\t\treturn retVal;\n\t}\n};\nLegend.prototype._class += \" layout_Legend\";\nLegend.prototype.publish(\"title\", \"\", \"string\", \"Title\");\nLegend.prototype.publish(\"symbolType\", \"circle\", \"set\", \"Shape of each legend item\", [\n\t\"circle\",\n\t\"cross\",\n\t\"diamond\",\n\t\"square\",\n\t\"star\",\n\t\"triangle\",\n\t\"wye\"\n]);\nLegend.prototype.publish(\"labelMaxWidth\", null, \"number\", \"Max Label Width (pixels)\", null, { optional: true });\nLegend.prototype.publish(\"orientation\", \"vertical\", \"set\", \"Orientation of Legend rows\", [\"vertical\", \"horizontal\"], { tags: [\"Private\"] });\nLegend.prototype.publish(\"dataFamily\", \"ND\", \"set\", \"Type of data\", [\n\t\"1D\",\n\t\"2D\",\n\t\"ND\",\n\t\"map\",\n\t\"graph\",\n\t\"any\"\n], { tags: [\"Private\"] });\nLegend.prototype.publish(\"rainbowFormat\", \",\", \"string\", \"Rainbow number formatting\", null, {\n\ttags: [\"Private\"],\n\toptional: true,\n\tdisable: (w) => !w.isRainbow()\n});\nLegend.prototype.publish(\"rainbowBins\", 8, \"number\", \"Number of rainbow bins\", null, {\n\ttags: [\"Private\"],\n\tdisable: (w) => !w.isRainbow()\n});\nLegend.prototype.publish(\"showSeriesTotal\", false, \"boolean\", \"Show value next to series\");\nLegend.prototype.publish(\"showLegendTotal\", false, \"boolean\", \"Show a total of the series values under the legend\", null);\nLegend.prototype.publish(\"itemPadding\", 8, \"number\", \"Padding between legend items (pixels)\");\nLegend.prototype.publish(\"shapeRadius\", 7, \"number\", \"Radius of legend shape (pixels)\");\nLegend.prototype.publish(\"fitToContent\", true, \"boolean\", \"If true, resize will simply reapply the bounding box dimensions\");\nLegend.prototype.publish(\"labelAlign\", \"start\", \"set\", \"Horizontal alignment of legend item label (for horizontal orientation only)\", [\n\t\"start\",\n\t\"middle\",\n\t\"end\"\n], {\n\toptional: true,\n\tdisable: (w) => w.orientation() === \"vertical\"\n});\n\n//#endregion\n//#region src/Modal.ts\nvar Modal = class extends HTMLWidget {\n\t_widget;\n\t_relativeTarget;\n\t_fade;\n\t_modal;\n\t_modalHeader;\n\t_modalBody;\n\t_modalHeaderAnnotations;\n\t_modalHeaderCloseButton;\n\t_close;\n\tconstructor() {\n\t\tsuper();\n\t\tthis._tag = \"div\";\n\t}\n\tcloseModal() {\n\t\tthis.visible(false);\n\t}\n\tgetRelativeTarget() {\n\t\tlet relativeTarget;\n\t\tif (this.relativeTargetId()) {\n\t\t\trelativeTarget = document.getElementById(this.relativeTargetId());\n\t\t\tif (relativeTarget) return relativeTarget;\n\t\t}\n\t\tif (!relativeTarget) {\n\t\t\trelativeTarget = this.locateAncestor(\"layout_Grid\");\n\t\t\tif (relativeTarget && relativeTarget.element) return relativeTarget.element().node();\n\t\t}\n\t\treturn document.body;\n\t}\n\tsetModalSize() {\n\t\tif (this.fixedHeight() !== null && this.fixedWidth() !== null) this._modal.style(\"height\", this.fixedHeight()).style(\"width\", this.fixedWidth()).style(\"min-height\", null).style(\"min-width\", null).style(\"max-height\", null).style(\"max-width\", null);\n\t\telse if (this.minHeight() || this.minWidth()) this._modal.style(\"min-height\", this.minHeight()).style(\"min-width\", this.minWidth()).style(\"max-height\", this.maxHeight()).style(\"max-width\", this.maxWidth());\n\t\tconst modalRect = this._modal.node().getBoundingClientRect();\n\t\tconst headerRect = this._modalHeader.node().getBoundingClientRect();\n\t\tthis._modalBody.style(\"height\", modalRect.height - headerRect.height + \"px\").style(\"width\", modalRect.width);\n\t\treturn modalRect;\n\t}\n\tsetFadePosition(rect) {\n\t\tthis._fade.style(\"top\", rect.top + \"px\").style(\"left\", rect.left + \"px\").style(\"width\", rect.width + \"px\").style(\"height\", rect.height + \"px\");\n\t}\n\tsetModalPosition(rect) {\n\t\tconst modalRect = this.setModalSize();\n\t\tif (this.fixedTop() !== null && this.fixedLeft() !== null) this._modal.style(\"top\", `calc(${this.fixedTop()} + ${rect.top}px)`).style(\"left\", `calc(${this.fixedLeft()} + ${rect.left}px)`);\n\t\telse if (this.fixedHeight() !== null && this.fixedWidth() !== null) this._modal.style(\"top\", rect.top + rect.height / 2 - modalRect.height / 2 + \"px\").style(\"left\", rect.left + rect.width / 2 - modalRect.width / 2 + \"px\");\n\t\telse if (this.minHeight() || this.minWidth()) {\n\t\t\tconst contentRect = this._modal.node().getBoundingClientRect();\n\t\t\tthis._modal.style(\"top\", rect.top + rect.height / 2 - contentRect.height / 2 + \"px\").style(\"left\", rect.left + rect.width / 2 - contentRect.width / 2 + \"px\");\n\t\t}\n\t}\n\tresize(size) {\n\t\tsuper.resize();\n\t\tif (this._modal) this.setModalSize();\n\t\treturn this;\n\t}\n\tresizeBodySync(width, height) {\n\t\tconst headerRect = this._modalHeader.node().getBoundingClientRect();\n\t\tthis._modal.style(\"width\", width + \"px\").style(\"height\", height + headerRect.height + \"px\").style(\"min-width\", width + \"px\").style(\"min-height\", height + headerRect.height + \"px\");\n\t\tthis._modalHeader.style(\"width\", width + \"px\");\n\t\tthis._modalBody.style(\"width\", width + \"px\").style(\"height\", height + \"px\");\n\t\treturn this.minWidth(width + \"px\").minHeight(height + headerRect.height + \"px\").resize({\n\t\t\theight: height + headerRect.height,\n\t\t\twidth\n\t\t});\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tthis._fade = element.append(\"div\").classed(\"layout_Modal-fade\", true).classed(\"layout_Modal-fadeClickable\", this.enableClickFadeToClose()).classed(\"layout_Modal-fade-hidden\", !this.showFade());\n\t\tconst header_h = this.titleFontSize() * 2;\n\t\tthis._modal = element.append(\"div\").classed(\"layout_Modal-content\", true);\n\t\tthis._modalHeader = this._modal.append(\"div\").classed(\"layout_Modal-header\", true).style(\"color\", this.titleFontColor()).style(\"font-size\", this.titleFontSize() + \"px\").style(\"height\", header_h + \"px\");\n\t\tthis._modalBody = this._modal.append(\"div\").classed(\"layout_Modal-body\", true).style(\"height\", `calc( 100% - ${header_h}px )`).style(\"overflow-x\", this.overflowX()).style(\"overflow-y\", this.overflowY());\n\t\tthis._modalHeader.append(\"div\").classed(\"layout_Modal-title\", true).style(\"line-height\", this.titleFontSize() + \"px\").style(\"top\", this.titleFontSize() / 2 + \"px\").style(\"left\", this.titleFontSize() / 2 + \"px\").text(this.formattedTitle());\n\t\tthis._modalHeaderAnnotations = this._modalHeader.append(\"div\").classed(\"layout_Modal-annotations\", true);\n\t\tthis._modalHeaderCloseButton = this._modalHeaderAnnotations.append(\"div\").classed(\"layout_Modal-closeButton\", true).html(\"<i class=\\\"fa fa-close\\\"></i>\");\n\t\tthis._modalHeaderAnnotations.style(\"line-height\", this.titleFontSize() + \"px\").style(\"right\", this.titleFontSize() / 2 + \"px\").style(\"top\", this.titleFontSize() / 2 + \"px\");\n\t\tthis._modalHeaderCloseButton.on(\"click\", () => {\n\t\t\tthis.closeModal();\n\t\t});\n\t\tthis._fade.on(\"click\", (n) => {\n\t\t\tif (this.enableClickFadeToClose()) this.closeModal();\n\t\t});\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t\telement.style(\"display\", this.show() ? null : \"none\");\n\t\tthis._fade.classed(\"layout_Modal-fade-hidden\", !this.showFade());\n\t\tthis._relativeTarget = this.getRelativeTarget();\n\t\tthis.setModalSize();\n\t\tconst rect = this._relativeTarget.getBoundingClientRect();\n\t\tthis.setFadePosition(rect);\n\t\tthis.setModalPosition(rect);\n\t\tif (this.show()) {\n\t\t\tif (!this._widget.target()) this._widget.target(this._modalBody.node());\n\t\t\tthis._widget.resize().render();\n\t\t} else this._widget.target(null).render();\n\t}\n\texit(domNode, element) {\n\t\tif (this._widget) this._widget.target(null);\n\t\tsuper.exit(domNode, element);\n\t}\n\tformattedTitle() {\n\t\tconst title = this.title_exists() ? this.title().trim() : \"\";\n\t\tif (title.length > 0 && title.slice(0, 1) === \"(\" && title.slice(-1) === \")\") return title.slice(1, -1);\n\t\treturn this.title();\n\t}\n};\nModal.prototype._class += \" layout_Modal\";\nModal.prototype.publish(\"title\", null, \"string\", \"title\");\nModal.prototype.publish(\"widget\", null, \"widget\", \"widget\");\nModal.prototype.publish(\"titleFontSize\", 18, \"number\", \"titleFontSize (in pixels)\");\nModal.prototype.publish(\"titleFontColor\", \"#ffffff\", \"html-color\", \"titleFontColor\");\nModal.prototype.publish(\"relativeTargetId\", null, \"string\", \"relativeTargetId\");\nModal.prototype.publish(\"show\", true, \"boolean\", \"show\");\nModal.prototype.publish(\"showFade\", true, \"boolean\", \"showFade\");\nModal.prototype.publish(\"enableClickFadeToClose\", true, \"boolean\", \"enableClickFadeToClose\");\nModal.prototype.publish(\"minWidth\", \"400px\", \"string\", \"minWidth\");\nModal.prototype.publish(\"minHeight\", \"400px\", \"string\", \"minHeight\");\nModal.prototype.publish(\"maxWidth\", \"800px\", \"string\", \"maxWidth\");\nModal.prototype.publish(\"maxHeight\", \"800px\", \"string\", \"maxHeight\");\nModal.prototype.publish(\"fixedWidth\", null, \"string\", \"fixedWidth\");\nModal.prototype.publish(\"fixedHeight\", null, \"string\", \"fixedHeight\");\nModal.prototype.publish(\"fixedTop\", null, \"string\", \"fixedTop\");\nModal.prototype.publish(\"fixedLeft\", null, \"string\", \"fixedLeft\");\nModal.prototype.publish(\"overflowX\", \"hidden\", \"string\", \"overflowX\");\nModal.prototype.publish(\"overflowY\", \"scroll\", \"string\", \"overflowY\");\n\n//#endregion\n//#region src/ChartPanel.ts\nvar ChartPanel = class extends Border2 {\n\t_legend = new Legend(this).enableOverflow(true);\n\t_progressBar = new ProgressBar();\n\t_autoScale = false;\n\t_resolutions = {\n\t\ttiny: {\n\t\t\twidth: 100,\n\t\t\theight: 100\n\t\t},\n\t\tsmall: {\n\t\t\twidth: 300,\n\t\t\theight: 300\n\t\t}\n\t};\n\t_modal = new Modal();\n\t_highlight;\n\t_scale;\n\t_orig_size;\n\t_toggleInfo = new ToggleButton().faChar(\"fa-info-circle\").tooltip(\".Description\").selected(false).on(\"enabled\", () => {\n\t\treturn this.description() !== \"\";\n\t}).on(\"click\", () => {\n\t\tif (this._toggleInfo.selected()) {\n\t\t\tthis._modal.title(this.title()).widget(new Text().text(this.description())).show(true).render();\n\t\t\tconst origCloseFunc = this._modal._close;\n\t\t\tthis._modal._close = () => {\n\t\t\t\tthis._toggleInfo.selected(false).render();\n\t\t\t\tthis._modal._close = origCloseFunc;\n\t\t\t};\n\t\t}\n\t}).on(\"mouseMove\", () => {}).on(\"mouseOut\", () => {});\n\t_toggleData = new ToggleButton().faChar(\"fa-table\").tooltip(\"Data\").on(\"click\", () => {\n\t\tthis.dataVisible(this._toggleData.selected());\n\t\tthis.render();\n\t});\n\t_buttonDownload = new Button().faChar(\"fa-download\").tooltip(\"Download\").on(\"click\", () => {\n\t\tthis.downloadCSV();\n\t});\n\t_buttonDownloadImage = new Button().faChar(\"fa-image\").tooltip(\"Download Image\").on(\"click\", () => {\n\t\tthis.downloadPNG();\n\t});\n\t_toggleLegend = new ToggleButton().faChar(\"fa-list-ul\").tooltip(\"Legend\").selected(false).on(\"click\", () => {\n\t\tconst selected = this._toggleLegend.selected();\n\t\tif (this.legendPosition() === \"bottom\") this.showBottom(selected);\n\t\telse if (this.legendPosition() === \"right\") this.showRight(selected);\n\t\tthis.legendVisible(selected);\n\t\tthis.render();\n\t});\n\t_spacer = new Spacer();\n\t_titleBar = new TitleBar().buttons([\n\t\tthis._toggleData,\n\t\tthis._buttonDownload,\n\t\tthis._buttonDownloadImage,\n\t\tthis._spacer,\n\t\tthis._toggleLegend\n\t]);\n\t_carousel = new Carousel();\n\t_table = new Table();\n\t_widget;\n\t_hideLegendToggleList = [\"dgrid_Table\"];\n\tconstructor() {\n\t\tsuper();\n\t\tthis._tag = \"div\";\n\t}\n\tfields(_) {\n\t\tif (!arguments.length) return super.fields();\n\t\tsuper.fields(_);\n\t\tthis._legend.fields(_);\n\t\tthis.refreshFields();\n\t\treturn this;\n\t}\n\trefreshFields() {\n\t\tthis._widget.fields(this._legend.filteredFields());\n\t\tthis._table.fields(this._legend.filteredFields());\n\t\treturn this;\n\t}\n\tcolumns(_, asDefault) {\n\t\tif (!arguments.length) return super.columns();\n\t\tsuper.columns(_, asDefault);\n\t\tthis._legend.columns(_, asDefault);\n\t\tthis.refreshColumns();\n\t\treturn this;\n\t}\n\trefreshColumns() {\n\t\tthis._widget.columns(this._legend.filteredColumns());\n\t\tthis._table.columns(this._legend.filteredColumns());\n\t\treturn this;\n\t}\n\tdata(_) {\n\t\tif (!arguments.length) return super.data();\n\t\tsuper.data(_);\n\t\tthis._legend.data(_);\n\t\tthis.refreshData();\n\t\treturn this;\n\t}\n\trefreshData() {\n\t\tthis._widget.data(this._legend.filteredData());\n\t\tthis._table.data(this._legend.filteredData());\n\t\treturn this;\n\t}\n\thighlight(_) {\n\t\tif (!arguments.length) return this._highlight;\n\t\tthis._highlight = _;\n\t\treturn this;\n\t}\n\tstartProgress() {\n\t\tthis._progressBar.start();\n\t}\n\tfinishProgress() {\n\t\tthis._progressBar.finish();\n\t}\n\tbuttons(_) {\n\t\tif (!arguments.length) return this._titleBar.buttons();\n\t\tthis._titleBar.buttons(_);\n\t\treturn this;\n\t}\n\tdownloadCSV() {\n\t\tconst namePrefix = this.downloadTitle() ? this.downloadTitle() : this.title() ? this.title() : \"data\";\n\t\tconst nameSuffix = this.downloadTimestampSuffix() ? \"_\" + Utility.timestamp() : \"\";\n\t\tUtility.downloadString(\"CSV\", this._widget.export(\"CSV\"), namePrefix + nameSuffix);\n\t\treturn this;\n\t}\n\tdownloadPNG() {\n\t\tconst widget = this.widget();\n\t\tif (widget instanceof SVGWidget) if (!this.legendVisible()) widget.downloadPNG(this.title());\n\t\telse widget.downloadPNG(this.title(), void 0, this._legend);\n\t\treturn this;\n\t}\n\thighlightColumn(column) {\n\t\tif (column) {\n\t\t\tconst cssTag = `series-${this.cssTag(column)}`;\n\t\t\tthis._centerWA.element().selectAll(\".series\").each(function() {\n\t\t\t\tconst element = select(this);\n\t\t\t\tconst highlight = element.classed(cssTag);\n\t\t\t\telement.classed(\"highlight\", highlight).classed(\"lowlight\", !highlight);\n\t\t\t});\n\t\t} else this._centerWA.element().selectAll(\".series\").classed(\"highlight\", false).classed(\"lowlight\", false);\n\t\treturn this;\n\t}\n\tgetResponsiveMode() {\n\t\tif (!this.enableAutoscaling()) return \"none\";\n\t\tif (!this._autoScale) return \"regular\";\n\t\tif (this.size().width <= this._resolutions.tiny.width || this.size().height <= this._resolutions.tiny.height) return \"tiny\";\n\t\telse if (this.size().width <= this._resolutions.small.width || this.size().height <= this._resolutions.small.height) return \"small\";\n\t\treturn \"regular\";\n\t}\n\tsetOrigSize() {\n\t\tthis._orig_size = JSON.parse(JSON.stringify(this.size()));\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tthis._modal.target(this.target()).relativeTargetId(this.id());\n\t\tthis.top(this._titleBar);\n\t\tthis.center(this._carousel);\n\t\tthis._legend.targetWidget(this._widget).orientation(\"vertical\").title(\"\").visible(false);\n\t\tthis._progressBar.enter(domNode, element);\n\t\tthis.setOrigSize();\n\t}\n\tpreUpdateTiny(element) {\n\t\telement.selectAll(\"div.body,div.title-text,div.icon-bar\").style(\"display\", \"none\");\n\t}\n\tpreUpdateSmall(element) {\n\t\tconst scale_x = this._orig_size.width / this._resolutions.small.width;\n\t\tconst scale_y = this._orig_size.height / this._resolutions.small.height;\n\t\tthis._scale = Math.min(scale_x, scale_y);\n\t\tconst x_is_smaller = this._scale === scale_x;\n\t\tthis.size({\n\t\t\twidth: x_is_smaller ? this._resolutions.small.width : this._orig_size.width * (1 / this._scale),\n\t\t\theight: !x_is_smaller ? this._resolutions.small.height : this._orig_size.height * (1 / this._scale)\n\t\t});\n\t\telement.select(\"div.title-icon\").style(\"position\", \"static\");\n\t\telement.selectAll(\"lhs\").style(\"display\", \"none\");\n\t\telement.selectAll(\"div.body,div.title-text,div.icon-bar\").style(\"display\", \"\");\n\t\telement.selectAll(\"div.data-count\").style(\"visibility\", \"hidden\");\n\t\telement.style(\"transform\", `scale(${this._scale})`);\n\t}\n\tpreUpdateRegular(element) {\n\t\telement.selectAll(\"div.body,div.title-text,div.icon-bar\").style(\"display\", \"\");\n\t\telement.selectAll(\"div.data-count\").style(\"visibility\", \"hidden\");\n\t\telement.select(\"div.title-icon\").style(\"position\", \"static\");\n\t\telement.style(\"transform\", \"translate(0px,0px) scale(1)\");\n\t}\n\t_prevdataVisible;\n\t_prevlegendVisible;\n\t_prevLegendPosition;\n\t_prevChartDataFamily;\n\t_prevChart;\n\t_prevButtons;\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t}\n\tpreUpdate(domNode, element) {\n\t\tsuper.preUpdate(domNode, element);\n\t\tif (this._prevLegendPosition !== this.legendPosition()) {\n\t\t\tif (this._legend.target() !== null) this._legend.target(null);\n\t\t\tif (this._prevLegendPosition !== void 0) this.swap(this._prevLegendPosition, this.legendPosition());\n\t\t\telse this[this.legendPosition()](this._legend);\n\t\t\tif (this.legendPosition() === \"right\") {\n\t\t\t\tthis.rightOverflowX(\"hidden\");\n\t\t\t\tthis.rightOverflowY(\"auto\");\n\t\t\t\tthis.bottomOverflowX(\"visible\");\n\t\t\t\tthis.bottomOverflowY(\"visible\");\n\t\t\t} else {\n\t\t\t\tthis.rightOverflowX(\"visible\");\n\t\t\t\tthis.rightOverflowY(\"visible\");\n\t\t\t\tthis.bottomOverflowX(\"auto\");\n\t\t\t\tthis.bottomOverflowY(\"hidden\");\n\t\t\t}\n\t\t\tthis._prevLegendPosition = this.legendPosition();\n\t\t}\n\t\tif (this._prevdataVisible !== this.dataVisible()) {\n\t\t\tthis._prevdataVisible = this.dataVisible();\n\t\t\tthis._toggleData.selected(this._prevdataVisible);\n\t\t\tthis._legend.visible(this._prevlegendVisible && !this._prevdataVisible);\n\t\t\tthis._carousel.active(this._prevdataVisible ? 1 : 0);\n\t\t}\n\t\tif (this._prevlegendVisible !== this.legendVisible()) {\n\t\t\tthis._prevlegendVisible = this.legendVisible();\n\t\t\tthis._toggleLegend.selected(this._prevlegendVisible);\n\t\t\tthis._legend.visible(this._prevlegendVisible && !this._prevdataVisible);\n\t\t}\n\t\tthis._legend.orientation(this.legendPosition() === \"bottom\" ? \"horizontal\" : \"vertical\");\n\t\tthis.showLeft(!this.left());\n\t\tswitch (this.getResponsiveMode()) {\n\t\t\tcase \"tiny\":\n\t\t\t\tthis.preUpdateTiny(element);\n\t\t\t\tbreak;\n\t\t\tcase \"small\":\n\t\t\t\tthis.preUpdateSmall(element);\n\t\t\t\tbreak;\n\t\t\tcase \"regular\":\n\t\t\t\tthis.preUpdateRegular(element);\n\t\t\t\tbreak;\n\t\t}\n\t\tconst chart = this._widget.classID() === \"composite_MultiChart\" ? this._widget[\"chart\"]() : this._widget;\n\t\tthis._legend.dataFamily(chart._dataFamily || \"any\");\n\t\tif (this._prevChartDataFamily !== this._legend.dataFamily()) {\n\t\t\tthis._prevChartDataFamily = this._legend.dataFamily();\n\t\t\tswitch (this._prevChartDataFamily) {\n\t\t\t\tcase \"any\":\n\t\t\t\t\tthis._toggleLegend.selected(false);\n\t\t\t\t\tthis._legend.visible(false);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\telement.style(\"box-shadow\", this.highlight() ? `inset 0px 0px 0px ${this.highlightSize()}px ${this.highlightColor()}` : \"none\");\n\t\tif (this._hideLegendToggleList.indexOf(chart.classID()) !== -1) {\n\t\t\tthis._spacer.visible(false);\n\t\t\tthis._toggleLegend.visible(false);\n\t\t} else {\n\t\t\tthis._spacer.visible(true);\n\t\t\tthis._toggleLegend.visible(true);\n\t\t}\n\t\tif (this._prevChart !== chart) {\n\t\t\tthis._prevChart = chart;\n\t\t\tconst widgetIconBar = chart ? chart[\"_titleBar\"] || chart[\"_iconBar\"] : void 0;\n\t\t\tif (widgetIconBar && widgetIconBar instanceof IconBar) {\n\t\t\t\tthis._prevButtons = this._prevButtons || [...this.buttons()];\n\t\t\t\tconst buttons = [\n\t\t\t\t\t...widgetIconBar.buttons(),\n\t\t\t\t\tnew Spacer(),\n\t\t\t\t\t...this._prevButtons\n\t\t\t\t];\n\t\t\t\twidgetIconBar.buttons([]).render();\n\t\t\t\tthis.buttons(buttons);\n\t\t\t} else if (this._prevButtons) this.buttons(this._prevButtons);\n\t\t}\n\t\tconst hiddenButtons = [];\n\t\tif (!this.dataButtonVisible()) hiddenButtons.push(this._toggleData);\n\t\tif (!this.downloadButtonVisible()) hiddenButtons.push(this._buttonDownload);\n\t\tif (!this.downloadImageButtonVisible()) hiddenButtons.push(this._buttonDownloadImage);\n\t\tif (!this.legendButtonVisible()) hiddenButtons.push(this._toggleLegend);\n\t\tthis._buttonDownloadImage.enabled(this.widget() instanceof SVGWidget);\n\t\tthis._titleBar.hiddenButtons(hiddenButtons).visible(this.titleVisible());\n\t\tthis.topOverlay(this.titleOverlay() || !this.titleVisible());\n\t}\n\tpostUpdate(domNode, element) {\n\t\tsuper.postUpdate(domNode, element);\n\t\tswitch (this.getResponsiveMode()) {\n\t\t\tcase \"tiny\":\n\t\t\t\tthis.postUpdateTiny(element);\n\t\t\t\tbreak;\n\t\t\tcase \"small\":\n\t\t\t\tthis.postUpdateSmall(element);\n\t\t\t\tbreak;\n\t\t\tcase \"regular\":\n\t\t\t\tthis.postUpdateRegular(element);\n\t\t\t\tbreak;\n\t\t}\n\t}\n\tpostUpdateTiny(element) {\n\t\telement.selectAll(\"div.body,div.title-text,div.icon-bar\").style(\"display\", \"none\");\n\t\telement.selectAll(\"div.data-count\").style(\"visibility\", \"visible\").style(\"font-size\", this.titleIconFontSize() / 3 + \"px\").style(\"line-height\", this.titleIconFontSize() / 3 + \"px\").style(\"left\", this.titleIconFontSize() + \"px\").text(this.data().length);\n\t\telement.style(\"transform\", \"translate(0px,0px) scale(1)\");\n\t\tconst iconDiv = element.selectAll(\"div.title-icon\");\n\t\tconst _node = iconDiv.node();\n\t\tconst containerRect = element.node().parentElement.getBoundingClientRect();\n\t\tif (_node) {\n\t\t\tconst rect = iconDiv.node().getBoundingClientRect();\n\t\t\tconst icon_top = containerRect.height / 2;\n\t\t\ticonDiv.style(\"position\", \"absolute\").style(\"left\", `calc(50% - ${rect.width / 2}px)`).style(\"top\", `${icon_top - rect.height / 2}px`);\n\t\t\telement.selectAll(\"div.data-count\").style(\"position\", \"absolute\").style(\"left\", `calc(50% + ${rect.width / 2}px)`).style(\"top\", `${icon_top - rect.height / 2}px`);\n\t\t}\n\t}\n\tpostUpdateSmall(element) {\n\t\telement.selectAll(\"lhs\").style(\"display\", \"none\");\n\t\telement.selectAll(\"div.title-icon\").style(\"position\", \"static\");\n\t\telement.selectAll(\"div.body,div.title-text,div.icon-bar\").style(\"display\", \"\");\n\t\telement.selectAll(\"div.data-count\").style(\"visibility\", \"hidden\");\n\t\tconst rect = element.node().getBoundingClientRect();\n\t\tconst parentRect = element.node().parentElement.getBoundingClientRect();\n\t\telement.style(\"transform\", `translate(${parentRect.x - rect.x}px, ${parentRect.y - rect.y}px) scale(${this._scale})`);\n\t}\n\tpostUpdateRegular(element) {\n\t\telement.selectAll(\"div.title-icon\").style(\"position\", \"static\");\n\t\telement.selectAll(\"div.body,div.title-text,div.icon-bar\").style(\"display\", \"\");\n\t\telement.selectAll(\"div.data-count\").style(\"visibility\", \"hidden\");\n\t}\n\texit(domNode, element) {\n\t\tthis._progressBar.exit(domNode, element);\n\t\tthis.right(null);\n\t\tthis._legend.target(null);\n\t\tthis.center(null);\n\t\tthis._carousel.target(null);\n\t\tthis.top(null);\n\t\tthis._titleBar.target(null);\n\t\tthis._modal.target(null);\n\t\tdelete this._prevChart;\n\t\tdelete this._prevButtons;\n\t\tdelete this._prevChartDataFamily;\n\t\tdelete this._prevPos;\n\t\tdelete this._prevdataVisible;\n\t\tdelete this._prevlegendVisible;\n\t\tsuper.exit(domNode, element);\n\t}\n\tclick(row, column, selected) {}\n\tdblclick(row, column, selected) {}\n\tvertex_click(row, col, sel, more) {\n\t\tif (more && more.vertex) {}\n\t}\n\tvertex_dblclick(row, col, sel, more) {\n\t\tif (more && more.vertex) {}\n\t}\n\tedge_click(row, col, sel, more) {\n\t\tif (more && more.edge) {}\n\t}\n\tedge_dblclick(row, col, sel, more) {\n\t\tif (more && more.edge) {}\n\t}\n};\nChartPanel.prototype._class += \" layout_ChartPanel\";\nChartPanel.prototype.publishReset();\nChartPanel.prototype.publishProxy(\"title\", \"_titleBar\");\nChartPanel.prototype.publish(\"titleVisible\", true, \"boolean\");\nChartPanel.prototype.publish(\"titleOverlay\", false, \"boolean\");\nChartPanel.prototype.publishProxy(\"titleIcon\", \"_titleBar\");\nChartPanel.prototype.publishProxy(\"titleIconFont\", \"_titleBar\");\nChartPanel.prototype.publishProxy(\"titleFont\", \"_titleBar\");\nChartPanel.prototype.publishProxy(\"titleIconFontSize\", \"_titleBar\");\nChartPanel.prototype.publishProxy(\"titleFontSize\", \"_titleBar\");\nChartPanel.prototype.publishProxy(\"description\", \"_titleBar\");\nChartPanel.prototype.publishProxy(\"descriptionFont\", \"_titleBar\");\nChartPanel.prototype.publishProxy(\"descriptionFontSize\", \"_titleBar\");\nChartPanel.prototype.publish(\"dataVisible\", false, \"boolean\", \"Show data table\");\nChartPanel.prototype.publish(\"dataButtonVisible\", true, \"boolean\", \"Show data table button\");\nChartPanel.prototype.publish(\"downloadButtonVisible\", true, \"boolean\", \"Show data download button\");\nChartPanel.prototype.publish(\"downloadImageButtonVisible\", false, \"boolean\", \"Show image download button\");\nChartPanel.prototype.publish(\"downloadTitle\", \"\", \"string\", \"File name when downloaded\");\nChartPanel.prototype.publish(\"downloadTimestampSuffix\", true, \"boolean\", \"Use timestamp as file name suffix\");\nChartPanel.prototype.publish(\"legendVisible\", false, \"boolean\", \"Show legend\");\nChartPanel.prototype.publish(\"legendButtonVisible\", true, \"boolean\", \"Show legend button\");\nChartPanel.prototype.publish(\"legendPosition\", \"right\", \"set\", \"Position of legend\", [\"right\", \"bottom\"]);\nChartPanel.prototype.publishProxy(\"legend_labelMaxWidth\", \"_legend\", \"labelMaxWidth\");\nChartPanel.prototype.publishProxy(\"legend_showSeriesTotal\", \"_legend\", \"showSeriesTotal\");\nChartPanel.prototype.publishProxy(\"legend_showLegendTotal\", \"_legend\", \"showLegendTotal\");\nChartPanel.prototype.publishProxy(\"legend_itemPadding\", \"_legend\", \"itemPadding\");\nChartPanel.prototype.publishProxy(\"legend_shapeRadius\", \"_legend\", \"shapeRadius\");\nChartPanel.prototype.publishProxy(\"legend_symbolType\", \"_legend\", \"symbolType\");\nChartPanel.prototype.publishProxy(\"legend_labelAlign\", \"_legend\", \"labelAlign\");\nChartPanel.prototype.publish(\"widget\", null, \"widget\", \"Widget\", void 0, { render: false });\nChartPanel.prototype.publish(\"enableAutoscaling\", false, \"boolean\");\nChartPanel.prototype.publish(\"highlightSize\", 4, \"number\");\nChartPanel.prototype.publish(\"highlightColor\", \"#e67e22\", \"html-color\");\nChartPanel.prototype.publishProxy(\"progress_halfLife\", \"_progressBar\", \"halfLife\");\nChartPanel.prototype.publishProxy(\"progress_decay\", \"_progressBar\", \"decay\");\nChartPanel.prototype.publishProxy(\"progress_size\", \"_progressBar\", \"size\");\nChartPanel.prototype.publishProxy(\"progress_color\", \"_progressBar\", \"color\");\nChartPanel.prototype.publishProxy(\"progress_blurBar\", \"_progressBar\", \"blurBar\");\nChartPanel.prototype.publishProxy(\"progress_blurSize\", \"_progressBar\", \"blurSize\");\nChartPanel.prototype.publishProxy(\"progress_blurColor\", \"_progressBar\", \"blurColor\");\nChartPanel.prototype.publishProxy(\"progress_blurOpacity\", \"_progressBar\", \"blurOpacity\");\nChartPanel.prototype.widget = function(_) {\n\tif (!arguments.length) return this._widget;\n\tthis._carousel.widgets([_, this._table]);\n\tthis._widget = _;\n\tthis._widget.fields(this._legend.filteredFields()).data(this._legend.filteredData());\n\tconst context = this;\n\tconst tmpAny = this._widget;\n\ttmpAny.click = function() {\n\t\tcontext.click.apply(context, arguments);\n\t};\n\ttmpAny.dblclick = function() {\n\t\tcontext.dblclick.apply(context, arguments);\n\t};\n\ttmpAny.vertex_click = function() {\n\t\tcontext.vertex_click.apply(context, arguments);\n\t};\n\ttmpAny.vertex_dblclick = function() {\n\t\tcontext.vertex_dblclick.apply(context, arguments);\n\t};\n\ttmpAny.edge_click = function() {\n\t\tcontext.edge_click.apply(context, arguments);\n\t};\n\ttmpAny.edge_dblclick = function() {\n\t\tcontext.edge_dblclick.apply(context, arguments);\n\t};\n\treturn this;\n};\n\n//#endregion\n//#region src/FlexGrid.ts\nvar FlexGrid = class extends HTMLWidget {\n\tconstructor() {\n\t\tsuper();\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tselect(domNode.parentNode).style(\"height\", \"100%\").style(\"width\", \"100%\");\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t\tconst context = this;\n\t\tconst cachedSizes = [];\n\t\tthis.updateFlexParent(element);\n\t\tconst listItems = element.selectAll(\".FlexGrid-list-item\").data(this.widgets(), (w) => w.id());\n\t\tlistItems.enter().append(\"div\").classed(\"FlexGrid-list-item\", true).each(function(w) {\n\t\t\tw.target(this);\n\t\t}).merge(listItems).style(\"min-height\", this.itemMinHeight() + \"px\").style(\"min-width\", this.itemMinWidth() + \"px\").style(\"flex-basis\", (n, i) => {\n\t\t\tconst flexBasis = this.widgetsFlexBasis()[i];\n\t\t\treturn typeof flexBasis !== \"undefined\" ? flexBasis : this.flexBasis();\n\t\t}).style(\"flex-grow\", (n, i) => {\n\t\t\tconst flexGrow = this.widgetsFlexGrow()[i];\n\t\t\treturn typeof flexGrow !== \"undefined\" ? flexGrow : this.flexGrow();\n\t\t}).style(\"border-width\", this.borderWidth() + \"px\").style(\"border-color\", this.itemBorderColor()).each(function() {\n\t\t\tthis.firstChild.style.display = \"none\";\n\t\t}).each(function() {\n\t\t\tconst rect = this.getBoundingClientRect();\n\t\t\tcachedSizes.push([rect.width, rect.height]);\n\t\t}).each(function(w, i) {\n\t\t\tthis.firstChild.style.display = \"block\";\n\t\t\tw.resize({\n\t\t\t\twidth: cachedSizes[i][0] - 2 * context.borderWidth(),\n\t\t\t\theight: cachedSizes[i][1] - 2 * context.borderWidth()\n\t\t\t});\n\t\t});\n\t\tlistItems.exit().remove();\n\t}\n\texit(domNode, element) {\n\t\tsuper.exit(domNode, element);\n\t}\n\tupdateFlexParent(element) {\n\t\telement.style(\"height\", \"100%\").style(\"flex-direction\", this.orientation() === \"horizontal\" ? \"row\" : \"column\").style(\"flex-wrap\", this.flexWrap()).style(\"align-items\", this.alignItems()).style(\"align-content\", this.alignContent()).style(\"overflow-x\", () => {\n\t\t\tif (this.forceXScroll() || this.orientation() === \"horizontal\" && this.flexWrap() === \"nowrap\" && !this.disableScroll()) return \"scroll\";\n\t\t\treturn \"hidden\";\n\t\t}).style(\"overflow-y\", () => {\n\t\t\tif (this.forceYScroll() || this.orientation() === \"vertical\" && this.flexWrap() === \"nowrap\" && !this.disableScroll()) return \"scroll\";\n\t\t\treturn \"hidden\";\n\t\t});\n\t}\n};\nFlexGrid.prototype._class += \" layout_FlexGrid\";\nFlexGrid.prototype.publish(\"itemBorderColor\", \"transparent\", \"html-color\", \"Color of list item borders\");\nFlexGrid.prototype.publish(\"borderWidth\", 0, \"number\", \"Width of list item borders (pixels)\");\nFlexGrid.prototype.publish(\"orientation\", \"horizontal\", \"set\", \"Controls the flex-direction of the list items\", [\"horizontal\", \"vertical\"]);\nFlexGrid.prototype.publish(\"flexWrap\", \"wrap\", \"set\", \"Controls the line wrap when overflow occurs\", [\n\t\"nowrap\",\n\t\"wrap\",\n\t\"wrap-reverse\"\n]);\nFlexGrid.prototype.publish(\"disableScroll\", false, \"boolean\", \"If false, scrollbar will show (when flexWrap is set to 'nowrap')\", null, { disable: (w) => w.flexWrap() !== \"nowrap\" });\nFlexGrid.prototype.publish(\"forceXScroll\", false, \"boolean\", \"If true, horzontal scrollbar will show\");\nFlexGrid.prototype.publish(\"forceYScroll\", false, \"boolean\", \"If true, vertical scrollbar will show\");\nFlexGrid.prototype.publish(\"itemMinHeight\", 64, \"number\", \"Minimum height of a list item (pixels)\");\nFlexGrid.prototype.publish(\"itemMinWidth\", 64, \"number\", \"Minimum width of a list item (pixels)\");\nFlexGrid.prototype.publish(\"alignItems\", \"stretch\", \"set\", \"Controls normal alignment of items\", [\n\t\"flex-start\",\n\t\"center\",\n\t\"flex-end\",\n\t\"stretch\"\n]);\nFlexGrid.prototype.publish(\"alignContent\", \"stretch\", \"set\", \"Controls normal alignment of item rows\", [\n\t\"flex-start\",\n\t\"center\",\n\t\"flex-end\",\n\t\"stretch\",\n\t\"space-between\",\n\t\"space-around\"\n]);\nFlexGrid.prototype.publish(\"flexGrow\", 1, \"number\", \"Default flex-grow style for all list items\");\nFlexGrid.prototype.publish(\"flexBasis\", \"10%\", \"string\", \"Default flex-basis style for all list items\");\nFlexGrid.prototype.publish(\"widgetsFlexGrow\", [], \"array\", \"Array of flex-grow values keyed on the widgets array\");\nFlexGrid.prototype.publish(\"widgetsFlexBasis\", [], \"array\", \"Array of flex-basis values keyed on the widgets array\");\nFlexGrid.prototype.publish(\"widgets\", [], \"widgetArray\", \"Array of widgets to be rendered as list items\");\n\n//#endregion\n//#region ../../node_modules/grid-list/src/gridList.js\nvar require_gridList = /* @__PURE__ */ __commonJS({ \"../../node_modules/grid-list/src/gridList.js\": ((exports, module) => {\n\t(function(root, factory) {\n\t\tif (typeof define === \"function\" && define.amd) define([], factory);\n\t\telse if (typeof exports === \"object\") module.exports = factory();\n\t\telse root.GridList = factory();\n\t})(exports, function() {\n\t\tvar GridList$1 = function(items, options) {\n\t\t\t/**\n\t\t\t* A GridList manages the two-dimensional positions from a list of items,\n\t\t\t* within a virtual matrix.\n\t\t\t*\n\t\t\t* The GridList's main function is to convert the item positions from one\n\t\t\t* grid size to another, maintaining as much of their order as possible.\n\t\t\t*\n\t\t\t* The GridList's second function is to handle collisions when moving an item\n\t\t\t* over another.\n\t\t\t*\n\t\t\t* The positioning algorithm places items in columns. Starting from left to\n\t\t\t* right, going through each column top to bottom.\n\t\t\t*\n\t\t\t* The size of an item is expressed using the number of cols and rows it\n\t\t\t* takes up within the grid (w and h)\n\t\t\t*\n\t\t\t* The position of an item is express using the col and row position within\n\t\t\t* the grid (x and y)\n\t\t\t*\n\t\t\t* An item is an object of structure:\n\t\t\t* {\n\t\t\t* w: 3, h: 1,\n\t\t\t* x: 0, y: 1\n\t\t\t* }\n\t\t\t*/\n\t\t\tthis._options = options;\n\t\t\tfor (var k$1 in this.defaults) if (!this._options.hasOwnProperty(k$1)) this._options[k$1] = this.defaults[k$1];\n\t\t\tthis.items = items;\n\t\t\tthis._adjustSizeOfItems();\n\t\t\tthis.generateGrid();\n\t\t};\n\t\tGridList$1.cloneItems = function(items, _items) {\n\t\t\t/**\n\t\t\t* Clone items with a deep level of one. Items are not referenced but their\n\t\t\t* properties are\n\t\t\t*/\n\t\t\tvar i, k$1;\n\t\t\tif (_items === void 0) _items = [];\n\t\t\tfor (i = 0; i < items.length; i++) {\n\t\t\t\tif (!_items[i]) _items[i] = {};\n\t\t\t\tfor (k$1 in items[i]) _items[i][k$1] = items[i][k$1];\n\t\t\t}\n\t\t\treturn _items;\n\t\t};\n\t\tGridList$1.prototype = {\n\t\t\tdefaults: {\n\t\t\t\tlanes: 5,\n\t\t\t\tdirection: \"horizontal\"\n\t\t\t},\n\t\t\ttoString: function() {\n\t\t\t\tvar widthOfGrid = this.grid.length, output = \"\\n #|\", border = \"\\n --\", item, i, j;\n\t\t\t\tfor (i = 0; i < widthOfGrid; i++) {\n\t\t\t\t\toutput += \" \" + this._padNumber(i, \" \");\n\t\t\t\t\tborder += \"---\";\n\t\t\t\t}\n\t\t\t\toutput += border;\n\t\t\t\tfor (i = 0; i < this._options.lanes; i++) {\n\t\t\t\t\toutput += \"\\n\" + this._padNumber(i, \" \") + \"|\";\n\t\t\t\t\tfor (j = 0; j < widthOfGrid; j++) {\n\t\t\t\t\t\toutput += \" \";\n\t\t\t\t\t\titem = this.grid[j][i];\n\t\t\t\t\t\toutput += item ? this._padNumber(this.items.indexOf(item), \"0\") : \"--\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\toutput += \"\\n\";\n\t\t\t\treturn output;\n\t\t\t},\n\t\t\tgenerateGrid: function() {\n\t\t\t\t/**\n\t\t\t\t* Build the grid structure from scratch, with the current item positions\n\t\t\t\t*/\n\t\t\t\tvar i;\n\t\t\t\tthis._resetGrid();\n\t\t\t\tfor (i = 0; i < this.items.length; i++) this._markItemPositionToGrid(this.items[i]);\n\t\t\t},\n\t\t\tresizeGrid: function(lanes) {\n\t\t\t\tvar currentColumn = 0;\n\t\t\t\tthis._options.lanes = lanes;\n\t\t\t\tthis._adjustSizeOfItems();\n\t\t\t\tthis._sortItemsByPosition();\n\t\t\t\tthis._resetGrid();\n\t\t\t\tfor (var i = 0; i < this.items.length; i++) {\n\t\t\t\t\tvar item = this.items[i], position = this._getItemPosition(item);\n\t\t\t\t\tthis._updateItemPosition(item, this.findPositionForItem(item, {\n\t\t\t\t\t\tx: currentColumn,\n\t\t\t\t\t\ty: 0\n\t\t\t\t\t}));\n\t\t\t\t\tcurrentColumn = Math.max(currentColumn, position.x);\n\t\t\t\t}\n\t\t\t\tthis._pullItemsToLeft();\n\t\t\t},\n\t\t\tfindPositionForItem: function(item, start, fixedRow) {\n\t\t\t\t/**\n\t\t\t\t* This method has two options for the position we want for the item:\n\t\t\t\t* - Starting from a certain row/column number and only looking for\n\t\t\t\t* positions to its right\n\t\t\t\t* - Accepting positions for a certain row number only (use-case: items\n\t\t\t\t* being shifted to the left/right as a result of collisions)\n\t\t\t\t*\n\t\t\t\t* @param {Object<x:Number, y:Number, w:Number, h:Number} item\n\t\t\t\t* @param {Object<x:Number, y:Number} start Position from which to start\n\t\t\t\t* the search.\n\t\t\t\t* @param {Number} [fixedRow] If provided, we're going to try to find a\n\t\t\t\t* position for the new item on it. If doesn't fit there, we're going\n\t\t\t\t* to put it on the first row.\n\t\t\t\t*\n\t\t\t\t* @returns {Number[2]} x and y.\n\t\t\t\t*/\n\t\t\t\tvar x, y, position;\n\t\t\t\tfor (x = start.x; x < this.grid.length; x++) if (fixedRow !== void 0) {\n\t\t\t\t\tposition = [x, fixedRow];\n\t\t\t\t\tif (this._itemFitsAtPosition(item, position)) return position;\n\t\t\t\t} else for (y = start.y; y < this._options.lanes; y++) {\n\t\t\t\t\tposition = [x, y];\n\t\t\t\t\tif (this._itemFitsAtPosition(item, position)) return position;\n\t\t\t\t}\n\t\t\t\tvar newCol = this.grid.length, newRow = 0;\n\t\t\t\tif (fixedRow !== void 0 && this._itemFitsAtPosition(item, [newCol, fixedRow])) newRow = fixedRow;\n\t\t\t\treturn [newCol, newRow];\n\t\t\t},\n\t\t\tmoveItemToPosition: function(item, newPosition) {\n\t\t\t\tvar position = this._getItemPosition({\n\t\t\t\t\tx: newPosition[0],\n\t\t\t\t\ty: newPosition[1],\n\t\t\t\t\tw: item.w,\n\t\t\t\t\th: item.h\n\t\t\t\t});\n\t\t\t\tthis._updateItemPosition(item, [position.x, position.y]);\n\t\t\t\tthis._resolveCollisions(item);\n\t\t\t},\n\t\t\tresizeItem: function(item, size) {\n\t\t\t\t/**\n\t\t\t\t* Resize an item and resolve collisions.\n\t\t\t\t*\n\t\t\t\t* @param {Object} item A reference to an item that's part of the grid.\n\t\t\t\t* @param {Object} size\n\t\t\t\t* @param {Number} [size.w=item.w] The new width.\n\t\t\t\t* @param {Number} [size.h=item.h] The new height.\n\t\t\t\t*/\n\t\t\t\tvar width = size.w || item.w, height = size.h || item.h;\n\t\t\t\tthis._updateItemSize(item, width, height);\n\t\t\t\tthis._resolveCollisions(item);\n\t\t\t\tthis._pullItemsToLeft();\n\t\t\t},\n\t\t\tgetChangedItems: function(initialItems, idAttribute) {\n\t\t\t\t/**\n\t\t\t\t* Compare the current items against a previous snapshot and return only\n\t\t\t\t* the ones that changed their attributes in the meantime. This includes both\n\t\t\t\t* position (x, y) and size (w, h)\n\t\t\t\t*\n\t\t\t\t* Since both their position and size can change, the items need an\n\t\t\t\t* additional identifier attribute to match them with their previous state\n\t\t\t\t*/\n\t\t\t\tvar changedItems = [];\n\t\t\t\tfor (var i = 0; i < initialItems.length; i++) {\n\t\t\t\t\tvar item = this._getItemByAttribute(idAttribute, initialItems[i][idAttribute]);\n\t\t\t\t\tif (item.x !== initialItems[i].x || item.y !== initialItems[i].y || item.w !== initialItems[i].w || item.h !== initialItems[i].h) changedItems.push(item);\n\t\t\t\t}\n\t\t\t\treturn changedItems;\n\t\t\t},\n\t\t\t_sortItemsByPosition: function() {\n\t\t\t\tthis.items.sort(function(item1, item2) {\n\t\t\t\t\tvar position1 = this._getItemPosition(item1), position2 = this._getItemPosition(item2);\n\t\t\t\t\tif (position1.x != position2.x) return position1.x - position2.x;\n\t\t\t\t\tif (position1.y != position2.y) return position1.y - position2.y;\n\t\t\t\t\treturn 0;\n\t\t\t\t}.bind(this));\n\t\t\t},\n\t\t\t_adjustSizeOfItems: function() {\n\t\t\t\t/**\n\t\t\t\t* Some items can have 100% height or 100% width. Those dimmensions are\n\t\t\t\t* expressed as 0. We need to ensure a valid width and height for each of\n\t\t\t\t* those items as the number of items per lane.\n\t\t\t\t*/\n\t\t\t\tfor (var i = 0; i < this.items.length; i++) {\n\t\t\t\t\tvar item = this.items[i];\n\t\t\t\t\tif (item.autoSize === void 0) item.autoSize = item.w === 0 || item.h === 0;\n\t\t\t\t\tif (item.autoSize) if (this._options.direction === \"horizontal\") item.h = this._options.lanes;\n\t\t\t\t\telse item.w = this._options.lanes;\n\t\t\t\t}\n\t\t\t},\n\t\t\t_resetGrid: function() {\n\t\t\t\tthis.grid = [];\n\t\t\t},\n\t\t\t_itemFitsAtPosition: function(item, newPosition) {\n\t\t\t\t/**\n\t\t\t\t* Check that an item wouldn't overlap with another one if placed at a\n\t\t\t\t* certain position within the grid\n\t\t\t\t*/\n\t\t\t\tvar position = this._getItemPosition(item), x, y;\n\t\t\t\tif (newPosition[0] < 0 || newPosition[1] < 0) return false;\n\t\t\t\tif (newPosition[1] + position.h > this._options.lanes) return false;\n\t\t\t\tfor (x = newPosition[0]; x < newPosition[0] + position.w; x++) {\n\t\t\t\t\tvar col = this.grid[x];\n\t\t\t\t\tif (!col) continue;\n\t\t\t\t\tfor (y = newPosition[1]; y < newPosition[1] + position.h; y++) if (col[y] && col[y] !== item) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t},\n\t\t\t_updateItemPosition: function(item, position) {\n\t\t\t\tif (item.x !== null && item.y !== null) this._deleteItemPositionFromGrid(item);\n\t\t\t\tthis._setItemPosition(item, position);\n\t\t\t\tthis._markItemPositionToGrid(item);\n\t\t\t},\n\t\t\t_updateItemSize: function(item, width, height) {\n\t\t\t\t/**\n\t\t\t\t* @param {Object} item A reference to a grid item.\n\t\t\t\t* @param {Number} width The new width.\n\t\t\t\t* @param {Number} height The new height.\n\t\t\t\t*/\n\t\t\t\tif (item.x !== null && item.y !== null) this._deleteItemPositionFromGrid(item);\n\t\t\t\titem.w = width;\n\t\t\t\titem.h = height;\n\t\t\t\tthis._markItemPositionToGrid(item);\n\t\t\t},\n\t\t\t_markItemPositionToGrid: function(item) {\n\t\t\t\t/**\n\t\t\t\t* Mark the grid cells that are occupied by an item. This prevents items\n\t\t\t\t* from overlapping in the grid\n\t\t\t\t*/\n\t\t\t\tvar position = this._getItemPosition(item), x, y;\n\t\t\t\tthis._ensureColumns(position.x + position.w);\n\t\t\t\tfor (x = position.x; x < position.x + position.w; x++) for (y = position.y; y < position.y + position.h; y++) this.grid[x][y] = item;\n\t\t\t},\n\t\t\t_deleteItemPositionFromGrid: function(item) {\n\t\t\t\tvar position = this._getItemPosition(item), x, y;\n\t\t\t\tfor (x = position.x; x < position.x + position.w; x++) {\n\t\t\t\t\tif (!this.grid[x]) continue;\n\t\t\t\t\tfor (y = position.y; y < position.y + position.h; y++) if (this.grid[x][y] == item) this.grid[x][y] = null;\n\t\t\t\t}\n\t\t\t},\n\t\t\t_ensureColumns: function(N) {\n\t\t\t\t/**\n\t\t\t\t* Ensure that the grid has at least N columns available.\n\t\t\t\t*/\n\t\t\t\tvar i;\n\t\t\t\tfor (i = 0; i < N; i++) if (!this.grid[i]) this.grid.push(new GridCol(this._options.lanes));\n\t\t\t},\n\t\t\t_getItemsCollidingWithItem: function(item) {\n\t\t\t\tvar collidingItems = [];\n\t\t\t\tfor (var i = 0; i < this.items.length; i++) if (item != this.items[i] && this._itemsAreColliding(item, this.items[i])) collidingItems.push(i);\n\t\t\t\treturn collidingItems;\n\t\t\t},\n\t\t\t_itemsAreColliding: function(item1, item2) {\n\t\t\t\tvar position1 = this._getItemPosition(item1), position2 = this._getItemPosition(item2);\n\t\t\t\treturn !(position2.x >= position1.x + position1.w || position2.x + position2.w <= position1.x || position2.y >= position1.y + position1.h || position2.y + position2.h <= position1.y);\n\t\t\t},\n\t\t\t_resolveCollisions: function(item) {\n\t\t\t\tif (!this._tryToResolveCollisionsLocally(item)) this._pullItemsToLeft(item);\n\t\t\t\tthis._pullItemsToLeft();\n\t\t\t},\n\t\t\t_tryToResolveCollisionsLocally: function(item) {\n\t\t\t\t/**\n\t\t\t\t* Attempt to resolve the collisions after moving a an item over one or more\n\t\t\t\t* other items within the grid, by shifting the position of the colliding\n\t\t\t\t* items around the moving one. This might result in subsequent collisions,\n\t\t\t\t* in which case we will revert all position permutations. To be able to\n\t\t\t\t* revert to the initial item positions, we create a virtual grid in the\n\t\t\t\t* process\n\t\t\t\t*/\n\t\t\t\tvar collidingItems = this._getItemsCollidingWithItem(item);\n\t\t\t\tif (!collidingItems.length) return true;\n\t\t\t\tvar _gridList = new GridList$1([], this._options), leftOfItem, rightOfItem, aboveOfItem, belowOfItem;\n\t\t\t\tGridList$1.cloneItems(this.items, _gridList.items);\n\t\t\t\t_gridList.generateGrid();\n\t\t\t\tfor (var i = 0; i < collidingItems.length; i++) {\n\t\t\t\t\tvar collidingItem = _gridList.items[collidingItems[i]], collidingPosition = this._getItemPosition(collidingItem);\n\t\t\t\t\tvar position = this._getItemPosition(item);\n\t\t\t\t\tleftOfItem = [position.x - collidingPosition.w, collidingPosition.y];\n\t\t\t\t\trightOfItem = [position.x + position.w, collidingPosition.y];\n\t\t\t\t\taboveOfItem = [collidingPosition.x, position.y - collidingPosition.h];\n\t\t\t\t\tbelowOfItem = [collidingPosition.x, position.y + position.h];\n\t\t\t\t\tif (_gridList._itemFitsAtPosition(collidingItem, leftOfItem)) _gridList._updateItemPosition(collidingItem, leftOfItem);\n\t\t\t\t\telse if (_gridList._itemFitsAtPosition(collidingItem, aboveOfItem)) _gridList._updateItemPosition(collidingItem, aboveOfItem);\n\t\t\t\t\telse if (_gridList._itemFitsAtPosition(collidingItem, belowOfItem)) _gridList._updateItemPosition(collidingItem, belowOfItem);\n\t\t\t\t\telse if (_gridList._itemFitsAtPosition(collidingItem, rightOfItem)) _gridList._updateItemPosition(collidingItem, rightOfItem);\n\t\t\t\t\telse return false;\n\t\t\t\t}\n\t\t\t\tGridList$1.cloneItems(_gridList.items, this.items);\n\t\t\t\tthis.generateGrid();\n\t\t\t\treturn true;\n\t\t\t},\n\t\t\t_pullItemsToLeft: function(fixedItem) {\n\t\t\t\t/**\n\t\t\t\t* Build the grid from scratch, by using the current item positions and\n\t\t\t\t* pulling them as much to the left as possible, removing as space between\n\t\t\t\t* them as possible.\n\t\t\t\t*\n\t\t\t\t* If a \"fixed item\" is provided, its position will be kept intact and the\n\t\t\t\t* rest of the items will be layed around it.\n\t\t\t\t*/\n\t\t\t\tthis._sortItemsByPosition();\n\t\t\t\tthis._resetGrid();\n\t\t\t\tif (fixedItem) {\n\t\t\t\t\tvar fixedPosition = this._getItemPosition(fixedItem);\n\t\t\t\t\tthis._updateItemPosition(fixedItem, [fixedPosition.x, fixedPosition.y]);\n\t\t\t\t}\n\t\t\t\tfor (var i = 0; i < this.items.length; i++) {\n\t\t\t\t\tvar item = this.items[i], position = this._getItemPosition(item);\n\t\t\t\t\tif (fixedItem && item == fixedItem) continue;\n\t\t\t\t\tvar x = this._findLeftMostPositionForItem(item), newPosition = this.findPositionForItem(item, {\n\t\t\t\t\t\tx,\n\t\t\t\t\t\ty: 0\n\t\t\t\t\t}, position.y);\n\t\t\t\t\tthis._updateItemPosition(item, newPosition);\n\t\t\t\t}\n\t\t\t},\n\t\t\t_findLeftMostPositionForItem: function(item) {\n\t\t\t\t/**\n\t\t\t\t* When pulling items to the left, we need to find the leftmost position for\n\t\t\t\t* an item, with two considerations in mind:\n\t\t\t\t* - preserving its current row\n\t\t\t\t* - preserving the previous horizontal order between items\n\t\t\t\t*/\n\t\t\t\tvar tail = 0, position = this._getItemPosition(item);\n\t\t\t\tfor (var i = 0; i < this.grid.length; i++) for (var j = position.y; j < position.y + position.h; j++) {\n\t\t\t\t\tvar otherItem = this.grid[i][j];\n\t\t\t\t\tif (!otherItem) continue;\n\t\t\t\t\tvar otherPosition = this._getItemPosition(otherItem);\n\t\t\t\t\tif (this.items.indexOf(otherItem) < this.items.indexOf(item)) tail = otherPosition.x + otherPosition.w;\n\t\t\t\t}\n\t\t\t\treturn tail;\n\t\t\t},\n\t\t\t_getItemByAttribute: function(key, value) {\n\t\t\t\tfor (var i = 0; i < this.items.length; i++) if (this.items[i][key] === value) return this.items[i];\n\t\t\t\treturn null;\n\t\t\t},\n\t\t\t_padNumber: function(nr, prefix) {\n\t\t\t\treturn nr >= 10 ? nr : prefix + nr;\n\t\t\t},\n\t\t\t_getItemPosition: function(item) {\n\t\t\t\t/**\n\t\t\t\t* If the direction is vertical we need to rotate the grid 90 deg to the\n\t\t\t\t* left. Thus, we simulate the fact that items are being pulled to the top.\n\t\t\t\t*\n\t\t\t\t* Since the items have widths and heights, if we apply the classic\n\t\t\t\t* counter-clockwise 90 deg rotation\n\t\t\t\t*\n\t\t\t\t* [0 -1]\n\t\t\t\t* [1 0]\n\t\t\t\t*\n\t\t\t\t* then the top left point of an item will become the bottom left point of\n\t\t\t\t* the rotated item. To adjust for this, we need to subtract from the y\n\t\t\t\t* position the height of the original item - the width of the rotated item.\n\t\t\t\t*\n\t\t\t\t* However, if we do this then we'll reverse some actions: resizing the\n\t\t\t\t* width of an item will stretch the item to the left instead of to the\n\t\t\t\t* right; resizing an item that doesn't fit into the grid will push the\n\t\t\t\t* items around it instead of going on a new row, etc.\n\t\t\t\t*\n\t\t\t\t* We found it better to do a vertical flip of the grid after rotating it.\n\t\t\t\t* This restores the direction of the actions and greatly simplifies the\n\t\t\t\t* transformations.\n\t\t\t\t*/\n\t\t\t\tif (this._options.direction === \"horizontal\") return item;\n\t\t\t\telse return {\n\t\t\t\t\tx: item.y,\n\t\t\t\t\ty: item.x,\n\t\t\t\t\tw: item.h,\n\t\t\t\t\th: item.w\n\t\t\t\t};\n\t\t\t},\n\t\t\t_setItemPosition: function(item, position) {\n\t\t\t\t/**\n\t\t\t\t* See _getItemPosition.\n\t\t\t\t*/\n\t\t\t\tif (this._options.direction === \"horizontal\") {\n\t\t\t\t\titem.x = position[0];\n\t\t\t\t\titem.y = position[1];\n\t\t\t\t} else {\n\t\t\t\t\titem.x = position[1];\n\t\t\t\t\titem.y = position[0];\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tvar GridCol = function(lanes) {\n\t\t\tfor (var i = 0; i < lanes; i++) this.push(null);\n\t\t};\n\t\tGridCol.prototype = [];\n\t\treturn GridList$1;\n\t});\n}) });\n\n//#endregion\n//#region src/Grid.css\nvar import_gridList = /* @__PURE__ */ __toESM(require_gridList(), 1);\n\n//#endregion\n//#region src/Grid.ts\nvar GridList = import_gridList && import_gridList.default || import_gridList;\nvar Grid = class extends HTMLWidget {\n\tdivItems;\n\tgridList;\n\titems;\n\titemsMap;\n\torigItems;\n\tcellWidth;\n\tcellHeight;\n\tdragItem;\n\tdragItemPos;\n\t_d3Drag;\n\t_d3DragResize;\n\t_selectionBag;\n\t_scrollBarWidth;\n\tconstructor() {\n\t\tsuper();\n\t\tthis._tag = \"div\";\n\t\tthis._selectionBag = new Utility.Selection(this);\n\t\tthis.content([]);\n\t}\n\tgetDimensions() {\n\t\tconst size = {\n\t\t\twidth: 0,\n\t\t\theight: 0\n\t\t};\n\t\tthis.content().forEach(function(cell) {\n\t\t\tif (size.width < cell.gridCol() + cell.gridColSpan()) size.width = cell.gridCol() + cell.gridColSpan();\n\t\t\tif (size.height < cell.gridRow() + cell.gridRowSpan()) size.height = cell.gridRow() + cell.gridRowSpan();\n\t\t}, this);\n\t\treturn size;\n\t}\n\tclearContent(widget) {\n\t\tthis.content(this.content().filter(function(contentWidget) {\n\t\t\tif (!widget) {\n\t\t\t\tcontentWidget.target(null);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tlet w = contentWidget;\n\t\t\twhile (w) {\n\t\t\t\tif (widget === w) {\n\t\t\t\t\tcontentWidget.target(null);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tw = w.widget ? w.widget() : null;\n\t\t\t}\n\t\t\treturn true;\n\t\t}));\n\t}\n\tsetContent(row, col, widget, title, rowSpan, colSpan) {\n\t\trowSpan = rowSpan || 1;\n\t\tcolSpan = colSpan || 1;\n\t\ttitle = title || \"\";\n\t\tthis.content(this.content().filter(function(contentWidget) {\n\t\t\tif (contentWidget.gridRow() === row && contentWidget.gridCol() === col) {\n\t\t\t\tcontentWidget.target(null);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}));\n\t\tif (widget) {\n\t\t\tconst cell = new Cell().gridRow(row).gridCol(col).widget(widget).title(title).gridRowSpan(rowSpan).gridColSpan(colSpan);\n\t\t\tthis.content().push(cell);\n\t\t}\n\t\treturn this;\n\t}\n\tsortedContent() {\n\t\treturn this.content().sort(function(l, r) {\n\t\t\tif (l.gridRow() === r.gridRow()) return l.gridCol() - r.gridCol();\n\t\t\treturn l.gridRow() - r.gridRow();\n\t\t});\n\t}\n\tgetCell(row, col) {\n\t\tlet retVal = null;\n\t\tthis.content().some(function(cell) {\n\t\t\tif (row >= cell.gridRow() && row < cell.gridRow() + cell.gridRowSpan() && col >= cell.gridCol() && col < cell.gridCol() + cell.gridColSpan()) {\n\t\t\t\tretVal = cell;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t});\n\t\treturn retVal;\n\t}\n\tgetWidgetCell(id) {\n\t\tlet retVal = null;\n\t\tthis.content().some(function(cell) {\n\t\t\tif (cell.widget().id() === id) {\n\t\t\t\tretVal = cell;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t});\n\t\treturn retVal;\n\t}\n\tgetContent(id) {\n\t\tlet retVal = null;\n\t\tthis.content().some(function(cell) {\n\t\t\tif (cell.widget().id() === id) {\n\t\t\t\tretVal = cell.widget();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t});\n\t\treturn retVal;\n\t}\n\tcellToGridItem(cell) {\n\t\treturn {\n\t\t\tx: cell.gridCol(),\n\t\t\ty: cell.gridRow(),\n\t\t\tw: cell.gridColSpan(),\n\t\t\th: cell.gridRowSpan(),\n\t\t\tid: cell.id(),\n\t\t\tcell\n\t\t};\n\t}\n\tgridItemToCell(item) {\n\t\titem.cell.gridCol(item.x).gridRow(item.y).gridColSpan(item.w).gridRowSpan(item.h);\n\t}\n\tresetItemsPos() {\n\t\tthis.origItems.forEach(function(origItem) {\n\t\t\tconst item = this.itemsMap[origItem.id];\n\t\t\titem.x = origItem.x;\n\t\t\titem.y = origItem.y;\n\t\t}, this);\n\t}\n\tinitGridList() {\n\t\tthis.itemsMap = {};\n\t\tthis.items = this.content().map(function(cell) {\n\t\t\tconst retVal = this.cellToGridItem(cell);\n\t\t\tthis.itemsMap[retVal.id] = retVal;\n\t\t\treturn retVal;\n\t\t}, this);\n\t\tthis.origItems = this.content().map(this.cellToGridItem);\n\t\tthis.gridList = new GridList(this.items, {\n\t\t\tdirection: this.snapping(),\n\t\t\tlanes: this.snapping() === \"horizontal\" ? this.snappingRows() : this.snappingColumns()\n\t\t});\n\t}\n\tkillGridList() {\n\t\tthis.gridList = null;\n\t\tdelete this.items;\n\t\tdelete this.itemsMap;\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tthis._scrollBarWidth = Platform.getScrollbarWidth();\n\t\tconst context = this;\n\t\tthis._d3Drag = drag().subject(function(_d) {\n\t\t\tconst d = context.cellToGridItem(_d);\n\t\t\treturn {\n\t\t\t\tx: d.x * context.cellWidth,\n\t\t\t\ty: d.y * context.cellHeight\n\t\t\t};\n\t\t}).on(\"start\", function(_d) {\n\t\t\tif (!context.designMode()) return;\n\t\t\td3Event().sourceEvent.stopPropagation();\n\t\t\tcontext.initGridList();\n\t\t\tconst d = context.itemsMap[_d.id()];\n\t\t\tcontext.dragItem = element.append(\"div\").attr(\"class\", \"dragging\").style(\"transform\", function() {\n\t\t\t\treturn \"translate(\" + d.x * context.cellWidth + \"px, \" + d.y * context.cellHeight + \"px)\";\n\t\t\t}).style(\"width\", function() {\n\t\t\t\treturn d.w * context.cellWidth - context.gutter() + \"px\";\n\t\t\t}).style(\"height\", function() {\n\t\t\t\treturn d.h * context.cellHeight - context.gutter() + \"px\";\n\t\t\t});\n\t\t\tcontext.selectionBagClick(_d);\n\t\t}).on(\"drag\", function(_d) {\n\t\t\tif (!context.designMode()) return;\n\t\t\tconst event = d3Event();\n\t\t\tevent.sourceEvent.stopPropagation();\n\t\t\tconst d = context.itemsMap[_d.id()];\n\t\t\tif (event.x < 0) event.x = 0;\n\t\t\tif (event.x + d.w * context.cellWidth > context.snappingColumns() * context.cellWidth) event.x = context.snappingColumns() * context.cellWidth - d.w * context.cellWidth;\n\t\t\tif (event.y < 0) event.y = 0;\n\t\t\tif (event.y + d.h * context.cellWidth > context.snappingRows() * context.cellWidth) event.y = context.snappingRows() * context.cellWidth - d.h * context.cellWidth;\n\t\t\tconst pos = [Math.max(0, Math.floor((event.x + context.cellWidth / 2) / context.cellWidth)), Math.max(0, Math.floor((event.y + context.cellHeight / 2) / context.cellHeight))];\n\t\t\tif (d.x !== pos[0] || d.y !== pos[1]) {\n\t\t\t\tif (context.snapping() !== \"none\") {\n\t\t\t\t\tcontext.resetItemsPos();\n\t\t\t\t\tcontext.gridList.moveItemToPosition(d, pos);\n\t\t\t\t} else {\n\t\t\t\t\td.x = pos[0];\n\t\t\t\t\td.y = pos[1];\n\t\t\t\t}\n\t\t\t\tif (_d.gridCol() !== d.x || _d.gridRow() !== d.y) {\n\t\t\t\t\tcontext.items.forEach(context.gridItemToCell);\n\t\t\t\t\tcontext.updateGrid(false, 100);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcontext.dragItem.style(\"transform\", function() {\n\t\t\t\treturn \"translate(\" + event.x + \"px, \" + event.y + \"px)\";\n\t\t\t}).style(\"width\", function() {\n\t\t\t\treturn d.w * context.cellWidth + \"px\";\n\t\t\t}).style(\"height\", function() {\n\t\t\t\treturn d.h * context.cellHeight + \"px\";\n\t\t\t});\n\t\t}).on(\"end\", function() {\n\t\t\tif (!context.designMode()) return;\n\t\t\td3Event().sourceEvent.stopPropagation();\n\t\t\tcontext.dragItem.remove();\n\t\t\tcontext.dragItem = null;\n\t\t\tcontext.killGridList();\n\t\t});\n\t\tthis._d3DragResize = drag().subject(function(_d) {\n\t\t\tconst d = context.cellToGridItem(_d);\n\t\t\treturn {\n\t\t\t\tx: (d.x + d.w - 1) * context.cellWidth,\n\t\t\t\ty: (d.y + d.h - 1) * context.cellHeight\n\t\t\t};\n\t\t}).on(\"start\", function(_d) {\n\t\t\tif (!context.designMode()) return;\n\t\t\td3Event().sourceEvent.stopPropagation();\n\t\t\tcontext.initGridList();\n\t\t\tconst d = context.itemsMap[_d.id()];\n\t\t\tcontext.dragItem = element.append(\"div\").attr(\"class\", \"resizing\").style(\"transform\", function() {\n\t\t\t\treturn \"translate(\" + d.x * context.cellWidth + \"px, \" + d.y * context.cellHeight + \"px)\";\n\t\t\t}).style(\"width\", function() {\n\t\t\t\treturn d.w * context.cellWidth - context.gutter() + \"px\";\n\t\t\t}).style(\"height\", function() {\n\t\t\t\treturn d.h * context.cellHeight - context.gutter() + \"px\";\n\t\t\t});\n\t\t\tcontext.dragItemPos = {\n\t\t\t\tx: d.x,\n\t\t\t\ty: d.y\n\t\t\t};\n\t\t}).on(\"drag\", function(_d) {\n\t\t\tif (!context.designMode()) return;\n\t\t\tconst event = d3Event();\n\t\t\tevent.sourceEvent.stopPropagation();\n\t\t\tconst d = context.itemsMap[_d.id()];\n\t\t\tconst pos = [Math.max(0, Math.round(event.x / context.cellWidth)), Math.max(0, Math.round(event.y / context.cellHeight))];\n\t\t\tconst size = {\n\t\t\t\tw: Math.max(1, pos[0] - d.x + 1),\n\t\t\t\th: Math.max(1, pos[1] - d.y + 1)\n\t\t\t};\n\t\t\tif (d.w !== size.w || d.h !== size.h) {\n\t\t\t\tif (context.snapping() !== \"none\") {\n\t\t\t\t\tcontext.resetItemsPos();\n\t\t\t\t\tcontext.gridList.resizeItem(d, size);\n\t\t\t\t} else {\n\t\t\t\t\td.w = size.w;\n\t\t\t\t\td.h = size.h;\n\t\t\t\t}\n\t\t\t\tif (_d.gridColSpan() !== d.w || _d.gridRowSpan() !== d.h) {\n\t\t\t\t\tcontext.items.forEach(context.gridItemToCell);\n\t\t\t\t\tcontext.updateGrid(d.id, 100);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcontext.dragItem.style(\"width\", function() {\n\t\t\t\treturn (-d.x + 1) * context.cellWidth + event.x - context.gutter() + \"px\";\n\t\t\t}).style(\"height\", function() {\n\t\t\t\treturn (-d.y + 1) * context.cellHeight + event.y - context.gutter() + \"px\";\n\t\t\t});\n\t\t}).on(\"end\", function() {\n\t\t\tif (!context.designMode()) return;\n\t\t\td3Event().sourceEvent.stopPropagation();\n\t\t\tcontext.dragItem.remove();\n\t\t\tcontext.dragItem = null;\n\t\t\tcontext.killGridList();\n\t\t});\n\t}\n\tupdateGrid(resize, transitionDuration = 0, _noRender = false) {\n\t\ttransitionDuration = transitionDuration || 0;\n\t\tconst context = this;\n\t\tthis.divItems.classed(\"draggable\", this.designMode()).transition().duration(transitionDuration).style(\"left\", function(d) {\n\t\t\treturn d.gridCol() * context.cellWidth + context.gutter() / 2 + \"px\";\n\t\t}).style(\"top\", function(d) {\n\t\t\treturn d.gridRow() * context.cellHeight + context.gutter() / 2 + \"px\";\n\t\t}).style(\"width\", function(d) {\n\t\t\treturn d.gridColSpan() * context.cellWidth - context.gutter() + \"px\";\n\t\t}).style(\"height\", function(d) {\n\t\t\treturn d.gridRowSpan() * context.cellHeight - context.gutter() + \"px\";\n\t\t}).on(\"end\", function(d) {\n\t\t\td.surfaceShadow_default(context.surfaceShadow()).surfacePadding_default(context.surfacePadding()).surfaceBorderWidth_default(context.surfaceBorderWidth()).surfaceBackgroundColor_default(context.surfaceBackgroundColor());\n\t\t\tif (resize === true || resize === d.id()) d.resize().lazyRender();\n\t\t});\n\t}\n\tupdate(domNode, element2) {\n\t\tsuper.update(domNode, element2);\n\t\tthis._placeholderElement.style(\"overflow-x\", this.fitTo() === \"width\" ? \"hidden\" : null);\n\t\tthis._placeholderElement.style(\"overflow-y\", this.fitTo() === \"width\" ? \"scroll\" : null);\n\t\tconst dimensions = this.getDimensions();\n\t\tthis.cellWidth = (this.width() - (this.fitTo() === \"width\" ? this._scrollBarWidth : 0)) / dimensions.width;\n\t\tthis.cellHeight = this.fitTo() === \"all\" ? this.height() / dimensions.height : this.cellWidth;\n\t\tif (this.designMode()) {\n\t\t\tconst cellLaneRatio = Math.min(this.width() / this.snappingColumns(), this.height() / this.snappingRows());\n\t\t\tthis.cellWidth = Math.floor(cellLaneRatio);\n\t\t\tthis.cellHeight = this.cellWidth;\n\t\t}\n\t\tconst context = this;\n\t\tconst divItems = element2.selectAll(\"#\" + this.id() + \" > .ddCell\").data(this.content(), function(d) {\n\t\t\treturn d.id();\n\t\t});\n\t\tthis.divItems = divItems.enter().append(\"div\").attr(\"class\", \"ddCell\").each(function(d) {\n\t\t\td.target(this);\n\t\t\td.__grid_watch = d.monitor(function(key, newVal, oldVal) {\n\t\t\t\tif (context._renderCount && (key === \"snapping\" || key.indexOf(\"grid\") === 0) && newVal !== oldVal) {\n\t\t\t\t\tif (!context.gridList) {\n\t\t\t\t\t\tcontext.initGridList();\n\t\t\t\t\t\tif (context.snapping() !== \"none\") context.gridList.resizeGrid(context.snapping() === \"horizontal\" ? context.snappingRows() : context.snappingColumns());\n\t\t\t\t\t\tcontext.items.forEach(context.gridItemToCell);\n\t\t\t\t\t\tcontext.updateGrid(d.id(), 100);\n\t\t\t\t\t\tcontext.killGridList();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tselect(this).append(\"div\").attr(\"class\", \"resizeHandle\").call(context._d3DragResize).append(\"div\").attr(\"class\", \"resizeHandleDisplay\");\n\t\t}).merge(divItems);\n\t\tthis.divItems.each(function(d) {\n\t\t\tconst element = select(this);\n\t\t\tif (context.designMode()) element.call(context._d3Drag);\n\t\t\telse element.on(\"mousedown.drag\", null).on(\"touchstart.drag\", null);\n\t\t});\n\t\tthis.divItems.select(\".resizeHandle\").style(\"display\", this.designMode() ? null : \"none\");\n\t\tthis.updateGrid(true);\n\t\tdivItems.exit().each(function(d) {\n\t\t\td.target(null);\n\t\t\tif (d.__grid_watch) d.__grid_watch.remove();\n\t\t}).remove();\n\t\tconst lanesBackground = element2.selectAll(\"#\" + this.id() + \" > .laneBackground\").data(this.designMode() ? [\"\"] : []);\n\t\tlanesBackground.enter().insert(\"div\", \":first-child\").attr(\"class\", \"laneBackground\").style(\"left\", \"1px\").style(\"top\", \"1px\").on(\"click\", function() {\n\t\t\tcontext.selectionBagClear();\n\t\t}).merge(lanesBackground).style(\"width\", this.snappingColumns() * this.cellWidth + \"px\").style(\"height\", this.snappingRows() * this.cellHeight + \"px\");\n\t\tlanesBackground.exit().each(function() {\n\t\t\tcontext.selectionBagClear();\n\t\t}).remove();\n\t\tconst lanes = element2.selectAll(\"#\" + this.id() + \" > .lane\").data(this.designMode() ? [\"\"] : []);\n\t\tlanes.enter().append(\"div\").attr(\"class\", \"lane\").style(\"left\", \"1px\").style(\"top\", \"1px\");\n\t\tlanes.style(\"display\", this.showLanes() ? null : \"none\").style(\"width\", this.snappingColumns() * this.cellWidth + \"px\").style(\"height\", this.snappingRows() * this.cellHeight + \"px\").style(\"background-image\", \"linear-gradient(to right, grey 1px, transparent 1px), linear-gradient(to bottom, grey 1px, transparent 1px)\").style(\"background-size\", this.cellWidth + \"px \" + this.cellHeight + \"px\");\n\t\tlanes.exit().remove();\n\t}\n\texit(domNode, element) {\n\t\tthis.content().forEach((w) => w.target(null));\n\t\tsuper.exit(domNode, element);\n\t}\n\t_createSelectionObject(d) {\n\t\treturn {\n\t\t\t_id: d._id,\n\t\t\telement: () => {\n\t\t\t\treturn d._element;\n\t\t\t},\n\t\t\twidget: d\n\t\t};\n\t}\n\tselection(_) {\n\t\tif (!arguments.length) return this._selectionBag.get().map(function(d) {\n\t\t\treturn d._id;\n\t\t});\n\t\tthis._selectionBag.set(_.map(function(row) {\n\t\t\treturn this._createSelectionObject(row);\n\t\t}, this));\n\t\treturn this;\n\t}\n\tselectionBagClear() {\n\t\tif (!this._selectionBag.isEmpty()) {\n\t\t\tthis._selectionBag.clear();\n\t\t\tthis.postSelectionChange();\n\t\t}\n\t}\n\tselectionBagClick(d) {\n\t\tif (d !== null) {\n\t\t\tconst selectionObj = this._createSelectionObject(d);\n\t\t\tif (d3Event().sourceEvent.ctrlKey) if (this._selectionBag.isSelected(selectionObj)) {\n\t\t\t\tthis._selectionBag.remove(selectionObj);\n\t\t\t\tthis.postSelectionChange();\n\t\t\t} else {\n\t\t\t\tthis._selectionBag.append(selectionObj);\n\t\t\t\tthis.postSelectionChange();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tconst selected = this._selectionBag.get();\n\t\t\t\tif (selected.length === 1 && selected[0]._id === selectionObj._id) this.selectionBagClear();\n\t\t\t\telse this._selectionBag.set([selectionObj]);\n\t\t\t\tthis.postSelectionChange();\n\t\t\t}\n\t\t}\n\t}\n\tpostSelectionChange() {}\n\tapplyLayout(layoutArr) {\n\t\tthis.divItems.each((d, i) => {\n\t\t\tif (layoutArr[i]) {\n\t\t\t\tconst [x, y, w, h] = layoutArr[i];\n\t\t\t\td.gridCol(x).gridRow(y).gridColSpan(w).gridRowSpan(h);\n\t\t\t}\n\t\t});\n\t\tthis.updateGrid(true);\n\t}\n\tvizActivation(elem) {}\n};\nGrid.prototype._class += \" layout_Grid\";\nGrid.prototype.publish(\"designMode\", false, \"boolean\", \"Design Mode\", null, { tags: [\"Basic\"] });\nGrid.prototype.publish(\"showLanes\", true, \"boolean\", \"Show snapping lanes when in design mode\", null, {\n\ttags: [\"Basic\"],\n\tdisable: (w) => !w.designMode()\n});\nGrid.prototype.publish(\"fitTo\", \"all\", \"set\", \"Sizing Strategy\", [\"all\", \"width\"], { tags: [\"Basic\"] });\nGrid.prototype.publish(\"snapping\", \"vertical\", \"set\", \"Snapping Strategy\", [\n\t\"vertical\",\n\t\"horizontal\",\n\t\"none\"\n]);\nGrid.prototype.publish(\"snappingColumns\", 12, \"number\", \"Snapping Columns\");\nGrid.prototype.publish(\"snappingRows\", 16, \"number\", \"Snapping Rows\");\nGrid.prototype.publish(\"gutter\", 6, \"number\", \"Gap Between Widgets\", null, { tags: [\"Basic\"] });\nGrid.prototype.publish(\"surfaceShadow\", true, \"boolean\", \"3D Shadow\");\nGrid.prototype.publish(\"surfacePadding\", null, \"string\", \"Cell Padding (px)\", null, { tags: [\"Intermediate\"] });\nGrid.prototype.publish(\"surfaceBorderWidth\", 1, \"number\", \"Width (px) of Cell Border\", null, { tags: [\"Intermediate\"] });\nGrid.prototype.publish(\"surfaceBackgroundColor\", null, \"html-color\", \"Surface Background Color\", null, { tags: [\"Advanced\"] });\nGrid.prototype.publish(\"content\", [], \"widgetArray\", \"widgets\", null, {\n\ttags: [\"Basic\"],\n\trender: false\n});\n\n//#endregion\n//#region src/HorizontalList.ts\nvar HorizontalList = class extends FlexGrid {\n\tconstructor() {\n\t\tsuper();\n\t\tthis.orientation_default(\"horizontal\");\n\t\tthis.flexWrap_default(\"nowrap\");\n\t}\n};\nHorizontalList.prototype._class += \" layout_HorizontalList\";\n\n//#endregion\n//#region src/Layered.ts\nvar Layered = class extends HTMLWidget {\n\t_contentContainer;\n\t_widgetPlacements;\n\t_widgetRatios;\n\tconstructor() {\n\t\tsuper();\n\t\tthis._tag = \"div\";\n\t\tthis._widgetPlacements = [];\n\t\tthis._widgetRatios = [];\n\t}\n\taddLayer(widget, placement = \"default\", widthRatio = 1, heightRatio = 1) {\n\t\tconst widgets = this.widgets();\n\t\twidgets.push(widget ? widget : new Text().text(\"No widget defined for layer.\"));\n\t\tthis.widgets(widgets);\n\t\tthis._widgetPlacements.push(placement);\n\t\tthis._widgetRatios.push([widthRatio, heightRatio]);\n\t\treturn this;\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tthis._contentContainer = element.append(\"div\").attr(\"class\", \"container\");\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t\tconst context = this;\n\t\telement.style(\"padding\", this.surfacePadding() + \"px\");\n\t\tconst content = this._contentContainer.selectAll(\".content.id\" + this.id()).data(this.widgets(), function(d) {\n\t\t\treturn d.id();\n\t\t});\n\t\tcontent.enter().append(\"div\").attr(\"class\", \"content id\" + this.id()).each(function(widget, idx) {\n\t\t\twidget.target(this);\n\t\t}).merge(content).each(function(widget, idx) {\n\t\t\tconst clientSize = {\n\t\t\t\twidth: context.clientWidth(),\n\t\t\t\theight: context.clientHeight()\n\t\t\t};\n\t\t\tconst widgetSize = context.widgetSize(idx, clientSize);\n\t\t\tconst widgetPosition = context.widgetPosition(idx, clientSize, widgetSize);\n\t\t\tthis.style.top = widgetPosition.y + \"px\";\n\t\t\tthis.style.left = widgetPosition.x + \"px\";\n\t\t\twidget.resize(widgetSize).render();\n\t\t});\n\t\tcontent.exit().each(function(widget, idx) {\n\t\t\twidget.target(null);\n\t\t}).remove();\n\t\tcontent.order();\n\t}\n\twidgetSize(idx, clientSize) {\n\t\tif (this._widgetPlacements[idx] === \"default\") return {\n\t\t\twidth: clientSize.width * this._widgetRatios[idx][0],\n\t\t\theight: clientSize.height * this._widgetRatios[idx][1]\n\t\t};\n\t\telse return {\n\t\t\twidth: clientSize.width * this._widgetRatios[idx][0],\n\t\t\theight: clientSize.height * this._widgetRatios[idx][1]\n\t\t};\n\t}\n\twidgetPosition(idx, clientSize, widgetSize) {\n\t\tswitch (this._widgetPlacements[idx]) {\n\t\t\tdefault: return {\n\t\t\t\tx: 0,\n\t\t\t\ty: 0\n\t\t\t};\n\t\t\tcase \"top\": return {\n\t\t\t\tx: clientSize.width / 2 - widgetSize.width / 2,\n\t\t\t\ty: 0\n\t\t\t};\n\t\t\tcase \"bottom\": return {\n\t\t\t\tx: clientSize.width / 2 - widgetSize.width / 2,\n\t\t\t\ty: clientSize.height - widgetSize.height\n\t\t\t};\n\t\t\tcase \"left\": return {\n\t\t\t\tx: 0,\n\t\t\t\ty: clientSize.height / 2 - widgetSize.height / 2\n\t\t\t};\n\t\t\tcase \"right\": return {\n\t\t\t\tx: clientSize.width - widgetSize.width,\n\t\t\t\ty: clientSize.height / 2 - widgetSize.height / 2\n\t\t\t};\n\t\t\tcase \"center\": return {\n\t\t\t\tx: clientSize.width / 2 - widgetSize.width / 2,\n\t\t\t\ty: clientSize.height / 2 - widgetSize.height / 2\n\t\t\t};\n\t\t}\n\t}\n};\nLayered.prototype._class += \" layout_Layered\";\nLayered.prototype.publish(\"surfacePadding\", 0, \"number\", \"Padding\");\nLayered.prototype.publish(\"widgets\", [], \"widgetArray\", \"widgets\", null, { tags: [\"Private\"] });\n\n//#endregion\n//#region src/Popup.ts\nvar Popup = class extends HTMLWidget {\n\t_surfaceButtons;\n\t_originalPosition;\n\tconstructor() {\n\t\tsuper();\n\t\tthis._tag = \"div\";\n\t\tthis._surfaceButtons = [];\n\t}\n\tupdateState(visible) {\n\t\tvisible = visible || !this.popupState();\n\t\tthis.popupState(visible).render();\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tthis.widget().target(domNode);\n\t\tthis._originalPosition = this.position();\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t\telement.style(\"visibility\", this.popupState() ? null : \"hidden\").style(\"opacity\", this.popupState() ? null : 0).style(\"width\", this.shrinkWrap() ? this.widget().width() + \"px\" : this._size.width + \"px\").style(\"height\", this.shrinkWrap() ? this.widget().height() + \"px\" : this._size.height + \"px\");\n\t\tif (this.widget().size().height === 0) this.widget().resize(this.size());\n\t}\n\tpostUpdate(domNode, element) {\n\t\tlet left;\n\t\tlet top;\n\t\tswitch (this.centerPopup()) {\n\t\t\tcase \"container\":\n\t\t\t\tif (this._placeholderElement) {\n\t\t\t\t\tleft = parseInt(this._placeholderElement.style(\"width\")) / 2 - this.widget().width() / 2;\n\t\t\t\t\ttop = parseInt(this._placeholderElement.style(\"height\")) / 2 - this.widget().height() / 2;\n\t\t\t\t}\n\t\t\t\tthis.position(\"absolute\");\n\t\t\t\tbreak;\n\t\t\tcase \"window\":\n\t\t\t\tleft = window.innerWidth / 2 - this.widget().width() / 2;\n\t\t\t\ttop = window.innerHeight / 2 - this.widget().height() / 2;\n\t\t\t\tthis.position(\"fixed\");\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tleft = 0;\n\t\t\t\ttop = 0;\n\t\t\t\tthis.position(this._originalPosition);\n\t\t\t\tbreak;\n\t\t}\n\t\tthis.pos({\n\t\t\tx: left,\n\t\t\ty: top\n\t\t});\n\t\tsuper.postUpdate(domNode, element);\n\t\telement.style(\"position\", this.position()).style(\"left\", this.left() + \"px\").style(\"right\", this.right() + \"px\").style(\"top\", this.top() + \"px\").style(\"bottom\", this.bottom() + \"px\");\n\t}\n\texit(domNode, element) {\n\t\tif (this.widget()) this.widget().target(null);\n\t\tsuper.exit(domNode, element);\n\t}\n\tclick(obj) {}\n};\nPopup.prototype._class += \" layout_Popup\";\nPopup.prototype.publish(\"popupState\", false, \"boolean\", \"State of the popup, visible (true) or hidden (false)\", null, {});\nPopup.prototype.publish(\"shrinkWrap\", false, \"boolean\", \"The popup parent container either shrinks to the size of its contents (true) or expands to fit thge popup's parentDiv (false)\", null, {});\nPopup.prototype.publish(\"centerPopup\", \"none\", \"set\", \"Center the widget in its container element (target) or in the window\", [\n\t\"none\",\n\t\"container\",\n\t\"window\"\n], {});\nPopup.prototype.publish(\"top\", null, \"number\", \"Top position property of popup\", null, {});\nPopup.prototype.publish(\"bottom\", null, \"number\", \"Bottom position property of popup\", null, {});\nPopup.prototype.publish(\"left\", null, \"number\", \"Left position property of popup\", null, {});\nPopup.prototype.publish(\"right\", null, \"number\", \"Right position property of popup\", null, {});\nPopup.prototype.publish(\"position\", \"relative\", \"set\", \"Value of the 'position' property\", [\n\t\"absolute\",\n\t\"relative\",\n\t\"fixed\",\n\t\"static\",\n\t\"initial\",\n\t\"inherit\"\n], { tags: [\"Private\"] });\nPopup.prototype.publish(\"widget\", null, \"widget\", \"Widget\", null, { tags: [\"Private\"] });\n\n//#endregion\n//#region src/Tabbed.ts\nvar Tabbed = class extends HTMLWidget {\n\t_tabContainer;\n\t_contentContainer;\n\tconstructor() {\n\t\tsuper();\n\t\tthis._tag = \"div\";\n\t}\n\tclearTabs() {\n\t\tthis.labels([]);\n\t\tthis.widgets([]);\n\t\treturn this;\n\t}\n\taddTab(widget, label, isActive, callback) {\n\t\tconst widgetSize = widget.size();\n\t\tif (widgetSize.width === 0 && widgetSize.height === 0) widget.size({\n\t\t\twidth: \"100%\",\n\t\t\theight: \"100%\"\n\t\t});\n\t\tconst labels = this.labels();\n\t\tconst widgets = this.widgets();\n\t\tif (isActive) this.activeTabIdx(this.widgets().length);\n\t\tlabels.push(label);\n\t\tconst surface = new Surface().widget(widget ? widget : new Text().text(\"No widget defined for tab\"));\n\t\twidgets.push(surface);\n\t\tthis.labels(labels);\n\t\tthis.widgets(widgets);\n\t\tif (callback) callback(surface);\n\t\treturn this;\n\t}\n\twidgetSize(widgetDiv) {\n\t\tconst width = this.clientWidth();\n\t\tlet height = this.clientHeight();\n\t\tconst tcBox = this._tabContainer.node().getBoundingClientRect();\n\t\tif (typeof tcBox.height !== \"undefined\") height -= tcBox.height;\n\t\treturn {\n\t\t\twidth,\n\t\t\theight\n\t\t};\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t\tthis._tabContainer = element.append(\"div\");\n\t\tthis._contentContainer = element.append(\"div\");\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t\tconst context = this;\n\t\telement.style(\"padding\", this.surfacePadding_exists() ? this.surfacePadding() + \"px\" : null);\n\t\tconst tabs = this._tabContainer.selectAll(\".tab-button.id\" + this.id()).data(this.showTabs() ? this.labels() : [], function(d) {\n\t\t\treturn d;\n\t\t});\n\t\ttabs.enter().append(\"span\").attr(\"class\", \"tab-button id\" + this.id()).style(\"cursor\", \"pointer\").on(\"click\", function(d, idx) {\n\t\t\tcontext.click(context.widgets()[idx].widget(), d, idx);\n\t\t\tcontext.activeTabIdx(idx).render();\n\t\t}).merge(tabs).classed(\"active\", function(d, idx) {\n\t\t\treturn context.activeTabIdx() === idx;\n\t\t}).text(function(d) {\n\t\t\treturn d;\n\t\t});\n\t\ttabs.exit().remove();\n\t\tconst content = this._contentContainer.selectAll(\".tab-content.id\" + this.id()).data(this.widgets(), function(d) {\n\t\t\treturn d.id();\n\t\t});\n\t\tcontent.enter().append(\"div\").attr(\"class\", \"tab-content id\" + this.id()).each(function(widget, idx) {\n\t\t\twidget.target(this);\n\t\t}).merge(content).classed(\"active\", function(d, idx) {\n\t\t\treturn context.activeTabIdx() === idx;\n\t\t}).style(\"display\", function(d, idx) {\n\t\t\treturn context.activeTabIdx() === idx ? \"block\" : \"none\";\n\t\t}).each(function(surface, idx) {\n\t\t\tsurface.visible(context.activeTabIdx() === idx);\n\t\t\tif (context.activeTabIdx() === idx) {\n\t\t\t\tconst wSize = context.widgetSize(select(this));\n\t\t\t\tsurface.surfaceBorderWidth(context.showTabs() ? null : 0).surfacePadding(context.showTabs() ? null : 0).resize(wSize);\n\t\t\t}\n\t\t});\n\t\tcontent.exit().each(function(widget, idx) {\n\t\t\twidget.target(null);\n\t\t}).remove();\n\t\tswitch (this.tabLocation()) {\n\t\t\tcase \"bottom\":\n\t\t\t\tthis._tabContainer.attr(\"class\", \"on_bottom\").style(\"top\", this._contentContainer.node().offsetHeight + this.surfacePadding() + \"px\").style(\"position\", \"absolute\");\n\t\t\t\tthis._contentContainer.style(\"top\", this.surfacePadding_exists() ? this.surfacePadding() + \"px\" : null).style(\"position\", \"absolute\");\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthis._tabContainer.attr(\"class\", \"on_top\").style(\"top\", null).style(\"position\", \"relative\");\n\t\t\t\tthis._contentContainer.style(\"top\", this._tabContainer.node().offsetHeight + this.surfacePadding() + \"px\").style(\"position\", \"absolute\");\n\t\t\t\tbreak;\n\t\t}\n\t}\n\tclick(widget, column, idx) {}\n};\nTabbed.prototype._class += \" layout_Tabbed\";\nTabbed.prototype.publish(\"showTabs\", true, \"boolean\", \"Show Tabs\", null, {});\nTabbed.prototype.publish(\"surfacePadding\", 4, \"number\", \"Padding\");\nTabbed.prototype.publish(\"activeTabIdx\", 0, \"number\", \"Index of active tab\", null, {});\nTabbed.prototype.publish(\"labels\", [], \"array\", \"Array of tab labels sharing an index with \", null, { tags: [\"Private\"] });\nTabbed.prototype.publish(\"tabLocation\", \"top\", \"set\", \"Position the tabs at the bottom of the widget\", [\"top\", \"bottom\"], { tags: [\"Private\"] });\nTabbed.prototype.publish(\"widgets\", [], \"widgetArray\", \"widgets\", null, { tags: [\"Private\"] });\n\n//#endregion\n//#region src/Toolbar.ts\nvar Toolbar = class extends HTMLWidget {\n\tconstructor() {\n\t\tsuper();\n\t\tthis._tag = \"div\";\n\t}\n\tenter(domNode, element) {\n\t\tsuper.enter(domNode, element);\n\t}\n\tupdate(domNode, element) {\n\t\tsuper.update(domNode, element);\n\t\tconst context = this;\n\t\telement.attr(\"title\", context.title()).style(\"background-color\", this.backgroundColor());\n\t\tconst title = element.selectAll(\"div.toolbar-title\").data(this.title() ? [this.title()] : []);\n\t\ttitle.enter().append(\"div\").classed(\"toolbar-title\", true).append(\"span\");\n\t\ttitle.selectAll(\"div.toolbar-title > span\").style(\"font-size\", this.fontSize_exists() ? this.fontSize() + \"px\" : null).style(\"color\", this.fontColor_exists() ? this.fontColor() : null).style(\"font-family\", this.fontFamily_exists() ? this.fontFamily() : null).style(\"font-weight\", this.fontBold_exists() ? this.fontBold() ? \"bold\" : \"normal\" : null).style(\"background-color\", this.backgroundColor_exists() ? this.backgroundColor() : null).text(context.title());\n\t\ttitle.exit().remove();\n\t\tconst childWidgets = element.selectAll(\"div.toolbar-child\").data(this.widgets() !== null ? this.widgets() : [], function(d) {\n\t\t\treturn d.id();\n\t\t});\n\t\tchildWidgets.enter().insert(\"div\", \"div.toolbar-title\").each(function(d, i) {\n\t\t\tconst widgetClass = context.widgetClasses()[i] ? context.widgetClasses()[i] + \" toolbar-child\" : \"toolbar-child\";\n\t\t\tselect(this).classed(widgetClass, true);\n\t\t\td.target(this);\n\t\t});\n\t\tchildWidgets.exit().each(function(d) {\n\t\t\td.target(null);\n\t\t}).remove();\n\t\tchildWidgets.order();\n\t}\n\trender(callback) {\n\t\tconst context = this;\n\t\treturn super.render(function(w) {\n\t\t\tconst toolbarBBox = context.element().node().getBoundingClientRect();\n\t\t\tlet minX = toolbarBBox.left + toolbarBBox.width;\n\t\t\tcontext.element().selectAll(\"div.toolbar-child\").each(function(d, i) {\n\t\t\t\tconst childBBox = this.getBoundingClientRect();\n\t\t\t\tif (minX > childBBox.left) minX = childBBox.left;\n\t\t\t});\n\t\t\tcontext.element().select(\".toolbar-title\").style(\"width\", minX - toolbarBBox.left - 4 + \"px\");\n\t\t\tif (callback) callback(w);\n\t\t});\n\t}\n\texit(domNode, element) {\n\t\tthis.widgets().forEach(function(w) {\n\t\t\tw.target(null);\n\t\t});\n\t\tsuper.exit(domNode, element);\n\t}\n};\nToolbar.prototype._class += \" layout_Toolbar\";\nToolbar.prototype.publish(\"title\", \"\", \"string\", \"Title\", null, { tags: [\"Intermediate\"] });\nToolbar.prototype.publish(\"fontSize\", null, \"number\", \"Title Font Size (px)\", null, {\n\ttags: [\"Advanced\"],\n\toptional: true\n});\nToolbar.prototype.publish(\"fontColor\", null, \"html-color\", \"Title Font Color\", null, {\n\ttags: [\"Advanced\"],\n\toptional: true\n});\nToolbar.prototype.publish(\"fontFamily\", null, \"string\", \"Title Font Family\", null, {\n\ttags: [\"Advanced\"],\n\toptional: true\n});\nToolbar.prototype.publish(\"fontBold\", true, \"boolean\", \"Enable Bold Title Font\", null, {\n\ttags: [\"Advanced\"],\n\toptional: true\n});\nToolbar.prototype.publish(\"backgroundColor\", null, \"html-color\", \"Background Color\", null, {\n\ttags: [\"Intermediate\"],\n\toptional: true\n});\nToolbar.prototype.publish(\"responsive\", true, \"boolean\", \"Adapts to pixel width\", null, { tags: [\"Basic\"] });\nToolbar.prototype.publish(\"widgets\", [], \"widgetArray\", \"Child widgets of the toolbar\", null, { tags: [\"Basic\"] });\nToolbar.prototype.publish(\"widgetClasses\", [], \"array\", \"Array of Html Element classes to be assigned to the child widgets (shares index with widgets param)\", null, { tags: [\"Basic\"] });\n\n//#endregion\n//#region src/VerticalList.ts\nvar VerticalList = class extends FlexGrid {\n\tconstructor() {\n\t\tsuper();\n\t\tthis.orientation_default(\"vertical\");\n\t\tthis.flexWrap_default(\"nowrap\");\n\t}\n};\nVerticalList.prototype._class += \" layout_VerticalList\";\n\n//#endregion\nexport { AbsoluteSurface, Accordion, BUILD_VERSION, Border, Border2, Carousel, Cell, ChartPanel, FlexGrid, Grid, HorizontalList, Layered, Legend, Modal, PKG_NAME, PKG_VERSION, Popup, Surface, Tabbed, Toolbar, VerticalList, WidgetDiv };\n//# sourceMappingURL=index.js.map!function(){try{if(\"undefined\"!=typeof document){var o=document.createElement(\"style\");o.appendChild(document.createTextNode('.layout_AbsoluteSurface{pointer-events:none!important}.layout_AbsoluteSurface>.placeholder{pointer-events:all;position:relative;overflow:hidden}.layout_Accordion>ul{position:relative}.layout_Accordion.open>span{font-style:italic}.layout_Accordion.closed>ul{height:0;overflow:hidden}.layout_Accordion.open>ul{display:block}.layout_Accordion>.collapsible-icon,.layout_Accordion>.collapsible-title{cursor:pointer;box-sizing:border-box}.layout_Accordion>.collapsible-title{color:#fff;width:100%;height:26px;padding:4px 8px;font-size:13px;display:block;box-shadow:inset 0 -1px 1px #0003}.layout_Accordion li{background-color:#fff}.layout_Accordion>ul,.layout_Accordion>.collapsible-title{background-color:#333}.layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion>.collapsible-title{background-color:#555}.layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#777}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#999}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#bbb}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#ccc}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#ddd}.layout_Accordion>ul,.layout_Accordion>span{padding-left:0}.layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion>span{padding-left:12px}.layout_Accordion>.collapsible-title:before{padding:4px 8px;position:absolute;top:0;left:0}.layout_Accordion>.collapsible-icon{color:#fff;width:24px;height:24px;position:absolute;top:0;right:0}.layout_Surface{box-sizing:border-box;border:1px solid #e5e5e5;width:100%;height:100%;margin:0;overflow:hidden}.layout_Surface.shadow2{box-shadow:0 2px 2px #00000024,0 3px 1px -2px #0003,0 1px 5px #0000001f}.layout_Surface>h3{background-color:#e5e5e5;margin:0;padding:2px}.layout_Surface .html-button-container{position:absolute;top:3px;right:0}.layout_Surface>div{padding:8px}.layout_Surface .html-button-container .surface-button{margin-right:5px}.layout_Surface .html-button-container .surface-button i{opacity:.8}.layout_Surface .html-button-container .surface-button:hover{opacity:1}.layout_Surface .html-button-container .surface-button:active{opacity:.5}div[draggable=true].hideDragCellContent.content-icon:before{content:\"\";font-family:FontAwesome;font-size:100px;position:absolute;top:calc(50% - 74px);left:calc(50% - 56px)}div[draggable=true].hideDragCellContent.content-icon-Line:before{content:\"\"}div[draggable=true].hideDragCellContent.content-icon-Pie:before{content:\"\";top:calc(50% - 72px);left:calc(50% - 45px)}div[draggable=true].hideDragCellContent.content-icon-Area:before{content:\"\"}div[draggable=true].hideDragCellContent.content-icon-Gauge:before{content:\"\"}div[draggable=true].hideDragCellContent.content-icon-Table:before{content:\"\"}div[draggable=true].hideDragCellContent.content-icon-Form:before{content:\"\"}div[draggable=true].hideDragCellContent.content-icon-Grid:before,div[draggable=true].hideDragCellContent.content-icon-Graph:before,div[draggable=true].hideDragCellContent.content-icon-Border:before,div[draggable=true].hideDragCellContent.content-icon-Tabbed:before,div[draggable=true].hideDragCellContent.content-icon-Accordion:before,div[draggable=true].hideDragCellContent.content-icon-MultiChart:before,div[draggable=true].hideDragCellContent.content-icon-MultiChartSurface:before{content:\"\"}div[draggable=true].hideDragCellContent.content-icon-ChoroplethStates:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethStatesHeat:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethCounties:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethCountries:before,div[draggable=true].hideDragCellContent.content-icon-GMap:before,div[draggable=true].hideDragCellContent.content-icon-GMapHeat:before,div[draggable=true].hideDragCellContent.content-icon-GMapGraph:before,div[draggable=true].hideDragCellContent.content-icon-Text:before,div[draggable=true].hideDragCellContent.content-icon-TextBox:before,div[draggable=true].hideDragCellContent.content-icon-FAChar:before{content:\"\"}.layout_Cell .update-indicator{box-sizing:border-box;z-index:1000;pointer-events:none;border-style:solid;border-width:0;padding:0;position:absolute;top:0;left:0}.layout_Border{width:100%;height:100%}.layout_Border>.border-content{width:100%;height:100%;position:relative}.layout_Border>.borderHandle{opacity:.3;visibility:hidden;background-color:#444;width:6px;height:6px;position:absolute}.layout_Border.design-mode>.borderHandle{visibility:visible}.layout_Border>.borderHandle:hover{background-color:#666}.layout_Border>.borderHandle.borderHandleDisabled{display:none}.layout_Border>.borderHandle_top,.layout_Border>.borderHandle_bottom{cursor:ns-resize}.layout_Border>.borderHandle_left,.layout_Border>.borderHandle_right{cursor:ew-resize}.layout_Border .cell{border:1px solid #e5e5e5;border-radius:5px;display:inline-block;overflow:hidden}.layout_Border .cell h2{-webkit-margin:0px;text-align:center;margin:0;padding-top:4px}.layout_Border .layout_BorderCell.over{border:2px dashed #000}.layout_Border .dragItem{z-index:-1;opacity:.33}.layout_Border .notDragItem{z-index:-1;opacity:1}.layout_Border div[draggable=true]{opacity:.75;cursor:default}.layout_Border div[draggable=true] .dragHandle{opacity:1}.layout_Border div[draggable=true] .dragHandle_n,.layout_Border div[draggable=true] .dragHandle_e,.layout_Border div[draggable=true] .dragHandle_s,.layout_Border div[draggable=true] .dragHandle_w{background-color:#aaa}.layout_Border div[draggable=true] .dragHandle_nw,.layout_Border div[draggable=true] .dragHandle_ne,.layout_Border div[draggable=true] .dragHandle_se,.layout_Border div[draggable=true] .dragHandle_sw{background-color:#333}.layout_Border div[draggable=true] .dragHandle_nw{cursor:nw-resize}.layout_Border div[draggable=true] .dragHandle_n{cursor:n-resize}.layout_Border div[draggable=true] .dragHandle_ne{cursor:ne-resize}.layout_Border div[draggable=true] .dragHandle_e{cursor:e-resize}.layout_Border div[draggable=true] .dragHandle_se{cursor:se-resize}.layout_Border div[draggable=true] .dragHandle_s{cursor:s-resize}.layout_Border div[draggable=true] .dragHandle_sw{cursor:sw-resize}.layout_Border div[draggable=true] .dragHandle_w{cursor:w-resize}.layout_Border div[draggable=false]>div>.dragHandle{display:none}.layout_Border .grid-drop-target{box-sizing:border-box;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6464641a 4px 8px);border:2px dashed #7f8c8d;border-radius:0;position:fixed}.layout_Border .grid-drop-target.drop-target-over{background:repeating-linear-gradient(-45deg,#0000,#0000 6px,#119bd71a 6px 12px);border:2px dashed #179bd7}.layout_Border2{flex-direction:column;display:flex}.layout_Border2>.body{flex-flow:row;margin:0;padding:0;display:flex}.layout_Border2>.body>.center{flex:1}.layout_Border2>.header,.layout_Border2>.footer{display:block}.layout_Carousel>div{position:relative;overflow:hidden}.layout_Carousel>div>.carouselItem{position:absolute}.layout_Modal-header{background-color:#3f51b5;overflow:hidden}.layout_Modal-body{background-color:#fff;overflow:hidden scroll}.layout_Modal-title,.layout_Modal-annotations{position:absolute}.layout_Modal-closeButton{cursor:pointer}.layout_Modal-closeButton:hover{opacity:.7}.layout_Modal-closeButton:active{opacity:.5}.layout_Modal-fade{opacity:.5;z-index:10000;background-color:#000;position:fixed}.layout_Modal-content{z-index:10100;background-color:#fff;position:fixed}.layout_Modal-fade-hidden{display:none}.layout_Modal-fadeClickable{cursor:pointer}.layout_ChartPanel .series.highlight{stroke-width:2px;opacity:1}.layout_ChartPanel .series.lowlight{opacity:.3!important}.layout_FlexGrid{display:flex}.FlexGrid-list-item{border-style:solid;flex-grow:1;overflow:hidden}.layout_Grid>.ddCell{position:absolute}.layout_Grid>.laneBackground{background:#f5f5f5;border-style:solid;border-width:1px;position:absolute}.layout_Grid>.lane{opacity:.25;pointer-events:none;border-style:none;border-radius:0;position:absolute}.layout_Grid>.ddCell.draggable{cursor:move;background-color:#f8f8ff;border-style:solid;border-width:1px;border-radius:0}.layout_Grid>.ddCell.draggable>.resizeHandle{cursor:nwse-resize;border-style:none;width:8px;height:8px;position:absolute;bottom:0;right:0}.layout_Grid>.ddCell.draggable .resizeHandleDisplay{background-color:none;border:2px solid #a9a9a9;border-width:0 2px 2px 0;width:4px;height:4px;position:absolute;bottom:2px;right:2px}.layout_Grid>.ddCell.draggable .resizeHandleDisplay:hover{border-color:orange}.layout_Grid>.dragging{background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6464641a 4px 8px);border:1px solid gray;border-radius:0;position:absolute}.layout_Grid>.resizing{opacity:.3;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,orange 4px 8px);border:1px solid gray;border-radius:0;position:absolute}.layout_Grid>.ddCell.draggable .common_Widget.selected{background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6400001a 4px 8px);border:1px solid red;border-radius:0;position:absolute}.layout_Grid #drag-me:before{content:\"#\" attr(id);font-weight:700}.layout_Layered{pointer-events:none}.layout_Layered>.container>.content{position:absolute}.layout_Layered>.container>.content>div>.common_Widget,.layout_Layered>.container>.content>div>svg>.common_Widget{pointer-events:all}.layout_Tabbed .tab-button{background-color:#ccc;border-top:1px solid #ddd;border-left:1px solid #ddd;border-right:1px solid #ddd;margin-right:4px;padding:2px 2px 4px;display:inline-block;position:relative;top:1px}.layout_Tabbed .tab-button.active{z-index:999;background-color:#fff}.layout_Tabbed .on_bottom .tab-button{border-top:none;border-bottom:1px solid #ddd;top:-1px}.layout_Toolbar{white-space:nowrap;background-color:#ddd;height:100%;overflow:hidden}.layout_Toolbar .toolbar-title{text-overflow:ellipsis;white-space:nowrap;margin-left:4px;font-weight:700;display:inline-block;position:relative;top:50%;overflow:hidden;transform:translateY(-50%)}.layout_Toolbar .toolbar-child{float:right;margin-left:4px;margin-right:4px;line-height:16px;position:relative;top:50%;transform:translateY(-50%)}\\n/*$vite$:1*/')),document.head.appendChild(o)}}catch(e){console.error(\"vite-plugin-css-injected-by-js\",e)}}();","import { Utility } from \"@hpcc-js/common\";\n\ndeclare const require: any;\nexport function requireWidget(classID) {\n return new Promise(function (resolve, _reject) {\n const parsedClassID = Utility.parseClassID(classID);\n if (require) {\n require([parsedClassID.package], function (Package) {\n let Widget = null;\n if (Package && Package[parsedClassID.widgetID]) {\n Widget = Package[parsedClassID.widgetID];\n }\n resolve(parsedClassID.memberWidgetID ? (Widget.prototype ? Widget.prototype[parsedClassID.memberWidgetID] : Widget[parsedClassID.memberWidgetID]) : Widget);\n });\n }\n });\n}\n\nexport function requireWidgets(classIDs) {\n return Promise.all(classIDs.map(requireWidget));\n}\n","import { IGraph, INDChart } from \"@hpcc-js/api\";\nimport { Database, HTMLWidget, Utility, Widget } from \"@hpcc-js/common\";\nimport { map as d3Map } from \"d3-collection\";\nimport { requireWidget } from \"./Utility.ts\";\n\ndeclare const require: any;\nexport class MultiChart extends HTMLWidget {\n _allCharts = {};\n _chartTypeDefaults;\n _chartTypeProperties;\n _chartMonitor;\n _switchingTo;\n\n constructor() {\n super();\n INDChart.call(this);\n IGraph.call(this);\n\n this._tag = \"div\";\n\n this._allCharts = {};\n this._allChartTypes.forEach(function (item) {\n const newItem = JSON.parse(JSON.stringify(item));\n newItem.widget = null;\n this._allCharts[item.id] = newItem;\n this._allCharts[item.display] = newItem;\n this._allCharts[item.widgetClass] = newItem;\n }, this);\n this._chartTypeDefaults = {};\n this._chartTypeProperties = {};\n }\n\n fields(): Database.Field[];\n fields(_: Database.Field[]): this;\n fields(_?: Database.Field[]): Database.Field[] | this {\n const retVal = super.fields.apply(this, arguments);\n if (this.chart()) {\n if (!arguments.length) return this.chart().fields();\n this.chart().fields(_);\n }\n return retVal;\n }\n\n columns(): string[];\n columns(_, asDefault?: boolean): this;\n columns(_?, asDefault?: boolean) {\n const retVal = HTMLWidget.prototype.columns.apply(this, arguments);\n if (this.chart()) {\n if (!arguments.length) return this.chart().columns();\n this.chart().columns(_, asDefault);\n }\n return retVal;\n }\n\n data(_?) {\n const retVal = HTMLWidget.prototype.data.apply(this, arguments);\n if (this.chart()) {\n if (!arguments.length) return this.chart().data();\n this.chart().data(_);\n }\n return retVal;\n }\n\n hasOverlay() {\n return this.chart() && this.chart().hasOverlay();\n }\n\n visible(): boolean;\n visible(_: boolean): this;\n visible(_?: boolean): boolean | this {\n if (!arguments.length) return this.chart() && this.chart().visible();\n if (this.chart()) {\n this.chart().visible(_);\n }\n return this;\n }\n\n chartTypeDefaults(): object;\n chartTypeDefaults(_: object): this;\n chartTypeDefaults(_?: object): object | this {\n if (!arguments.length) return this._chartTypeDefaults;\n this._chartTypeDefaults = _;\n return this;\n }\n\n chartTypeProperties(): object;\n chartTypeProperties(_: object): this;\n chartTypeProperties(_?: object): object | this {\n if (!arguments.length) return this._chartTypeProperties;\n this._chartTypeProperties = _;\n return this;\n }\n\n getChartDataFamily() {\n return this._allCharts[this.chartType()].family;\n }\n\n requireContent(chartType, callback) {\n const classInfo = Utility.parseClassID(this._allCharts[chartType].widgetClass);\n switch (classInfo.package) {\n case \"@hpcc-js/chart\":\n import(\"@hpcc-js/chart\").then(mod => {\n callback(new mod[classInfo.widgetID]());\n });\n break;\n case \"@hpcc-js/dgrid\":\n import(\"@hpcc-js/dgrid\").then(mod => {\n callback(new mod[classInfo.widgetID]());\n });\n break;\n default:\n requireWidget(this._allCharts[chartType].widgetClass).then(function (WidgetClass: any) {\n callback(new WidgetClass());\n });\n }\n }\n\n switchChart(callback) {\n if (this._switchingTo === this.chartType()) {\n if (callback) {\n callback(this);\n }\n return;\n } else if (this._switchingTo) {\n console.warn(\"Attempting switch to: \" + this.chartType() + \", before previous switch is complete (\" + this._switchingTo + \")\");\n }\n this._switchingTo = this.chartType();\n const oldContent = this.chart();\n const context = this;\n this.requireContent(this.chartType(), function (newContent) {\n if (newContent !== oldContent) {\n const size = context.size();\n newContent\n .fields(context.fields())\n .data(context.data())\n .size(size)\n ;\n\n context.chart(newContent);\n if (oldContent) {\n oldContent\n .size({ width: 1, height: 1 })\n .render()\n ;\n }\n }\n delete context._switchingTo;\n if (callback) {\n callback(this);\n }\n });\n }\n\n update(domNode, element) {\n super.update(domNode, element);\n const content = element.selectAll(\".multiChart\").data(this.chart() ? [this.chart()] : [], function (d) { return d._id; });\n content.enter().append(\"div\")\n .attr(\"class\", \"multiChart\")\n .each(function (d) {\n d.target(this);\n })\n ;\n\n const currChart = this.chart();\n if (currChart) {\n for (const key in this._chartTypeDefaults) {\n if (currChart[key + \"_default\"]) {\n try {\n currChart[key + \"_default\"](this._chartTypeDefaults[key]);\n } catch (e) {\n console.warn(\"Exception Setting Default: \" + key);\n }\n } else {\n console.warn(\"Unknown Default: \" + key);\n }\n }\n this._chartTypeDefaults = {};\n for (const propKey in this._chartTypeProperties) {\n if (currChart[propKey]) {\n try {\n currChart[propKey](this._chartTypeProperties[propKey]);\n } catch (e) {\n console.warn(\"Exception Setting Property: \" + propKey);\n }\n } else {\n console.warn(\"Unknown Property: \" + propKey);\n }\n }\n this._chartTypeProperties = {};\n }\n\n const context = this;\n content\n .each(function (d) { d.resize(context.size()); })\n ;\n\n content.exit().transition()\n .each(function (d) { d.target(null); })\n .remove()\n ;\n }\n\n exit(domNode, element) {\n if (this._chartMonitor) {\n this._chartMonitor.remove();\n delete this._chartMonitor;\n }\n if (this.chart()) {\n this.chart().target(null);\n }\n super.exit(domNode, element);\n }\n\n render(_callback?) {\n if (this.chartType() && (!this.chart() || (this.chart().classID() !== this._allCharts[this.chartType()].widgetClass))) {\n const context = this;\n const args = arguments;\n this.switchChart(function () {\n HTMLWidget.prototype.render.apply(context, args);\n });\n return this;\n }\n return HTMLWidget.prototype.render.apply(this, arguments);\n }\n}\nMultiChart.prototype._class += \" composite_MultiChart\";\nMultiChart.prototype.implements(INDChart.prototype);\nMultiChart.prototype.implements(IGraph.prototype);\nexport interface ChartMeta {\n id: string;\n display: string;\n widgetClass: string;\n widgetPath?: string;\n}\nexport interface MultiChart {\n _otherChartTypes: ChartMeta[];\n _graphChartTypes: ChartMeta[];\n _1DChartTypes: ChartMeta[];\n _2DChartTypes: ChartMeta[];\n _NDChartTypes: ChartMeta[];\n _mapChartTypes: ChartMeta[];\n _anyChartTypes: ChartMeta[];\n _allChartTypes: ChartMeta[];\n _allMap;\n _allFamilies: string[];\n _allChartTypesMap;\n _allChartTypesByClass;\n\n hideRowOnLegendClick(): boolean;\n hideRowOnLegendClick(_: boolean): this;\n chartType(): string;\n chartType(_: string): this;\n chart(): Widget;\n chart(_: Widget): this;\n chart_access(): Widget;\n chart_access(_: Widget): this;\n\n click(_row, _column, _selected): void;\n dblclick(_row, _column, _selected): void;\n vertex_click(row, column, selected, more): void;\n vertex_dblclick(row, column, selected, more): void;\n edge_click(row, column, selected, more): void;\n edge_dblclick(row, column, selected, more): void;\n}\n\nMultiChart.prototype._otherChartTypes = [\n { id: \"FORM\", display: \"Form\", widgetClass: \"form_FieldForm\" }\n].map(function (item: any) { item.family = \"other\"; return item; });\nMultiChart.prototype._graphChartTypes = [\n { id: \"GRAPH\", display: \"Graph\", widgetClass: \"graph_Graph\" },\n { id: \"ADJACENCY_GRAPH\", display: \"Graph\", widgetClass: \"graph_AdjacencyGraph\" },\n { id: \"GRAPHC\", display: \"GraphC\", widgetClass: \"graph_GraphC\" }\n].map(function (item: any) { item.family = \"GRAPH\"; return item; });\nMultiChart.prototype._1DChartTypes = [\n].map(function (item: any) { item.family = \"1D\"; return item; });\nMultiChart.prototype._2DChartTypes = [\n { id: \"SUMMARY\", display: \"Summary\", widgetClass: \"chart_Summary\" },\n { id: \"BUBBLE\", display: \"Bubble\", widgetClass: \"chart_Bubble\" },\n { id: \"PIE\", display: \"Pie\", widgetClass: \"chart_Pie\" },\n { id: \"WORD_CLOUD\", display: \"Word Cloud\", widgetClass: \"other_WordCloud\" }\n].map(function (item: any) { item.family = \"2D\"; return item; });\nMultiChart.prototype._NDChartTypes = [\n { id: \"COLUMN\", display: \"Column\", widgetClass: \"chart_Column\" },\n { id: \"BAR\", display: \"Bar\", widgetClass: \"chart_Bar\" },\n { id: \"LINE\", display: \"Line\", widgetClass: \"chart_Line\" },\n { id: \"AREA\", display: \"Area\", widgetClass: \"chart_Area\" },\n { id: \"STEP\", display: \"Step\", widgetClass: \"chart_Step\" },\n { id: \"SCATTER\", display: \"Scatter\", widgetClass: \"chart_Scatter\" },\n { id: \"HEXBIN\", display: \"Hex Bin\", widgetClass: \"chart_HexBin\" }\n].map(function (item: any) { item.family = \"ND\"; return item; });\nMultiChart.prototype._mapChartTypes = [\n { id: \"CHORO_USSTATES\", display: \"US State Choropleth\", widgetClass: \"map_ChoroplethStates\" },\n { id: \"CHORO_USCOUNTIES\", display: \"US County Choropleth\", widgetClass: \"map_ChoroplethCounties\" },\n { id: \"CHORO_COUNTRIES\", display: \"Country Choropleth\", widgetClass: \"map_ChoroplethCountries\" },\n { id: \"GMAP_CHORO_USCOUNTIES\", display: \"Google Map US County Choropleth\", widgetClass: \"map_GMapCounties\" },\n { id: \"GOOGLE_MAP\", display: \"Google Map\", widgetClass: \"map_GMapLayered\" },\n { id: \"OPENSTREET\", display: \"Open Street Map\", widgetClass: \"map_OpenStreet\" }\n].map(function (item: any) { item.family = \"map\"; return item; });\nMultiChart.prototype._anyChartTypes = [\n { id: \"TABLE\", display: \"Table\", widgetClass: \"dgrid_Table\" },\n { id: \"TABLE_LEGACY\", display: \"Table (legacy)\", widgetClass: \"other_Table\" },\n { id: \"TABLE_NESTED\", display: \"Nested Table\", widgetClass: \"other_NestedTable\" },\n { id: \"TABLE_CALENDAR\", display: \"Table driven Calendar Heat Map\", widgetClass: \"other_CalendarHeatMap\" },\n { id: \"TABLE_BULLET\", display: \"Table driven bullet chart\", widgetClass: \"chart_Bullet\" },\n { id: \"TABLE_SELECT\", display: \"Table driven select\", widgetClass: \"other_Select\" },\n { id: \"TABLE_AUTOCOMPLETE\", display: \"Table driven auto complete\", widgetClass: \"other_AutoCompleteText\" },\n { id: \"TABLE_OPPORTUNITY\", display: \"Table driven opportunity widget\", widgetClass: \"graph_Opportunity\" },\n { id: \"TABLE_TREE\", display: \"Table driven tree\", widgetClass: \"tree_Dendrogram\" },\n { id: \"TABLE_TREEMAP\", display: \"Table driven Treemap\", widgetClass: \"tree_Treemap\" },\n { id: \"TABLE_SANKEY\", display: \"Table driven Sankey\", widgetClass: \"graph_Sankey\" },\n { id: \"TABLE_GMAP_PIN\", display: \"Table driven Google Map (pins)\", widgetClass: \"map_GMapPin\" },\n { id: \"TABLE_GMAP_PINLINE\", display: \"Table driven Google Map (pins/lines)\", widgetClass: \"map_GMapPinLine\" },\n { id: \"TABLE_XML_TREE\", display: \"Table driven XML Tree\", widgetClass: \"tree_Indented\" }\n].map(function (item: any) { item.family = \"any\"; return item; });\nMultiChart.prototype._allChartTypes =\n MultiChart.prototype._otherChartTypes.concat(\n MultiChart.prototype._graphChartTypes.concat(\n MultiChart.prototype._1DChartTypes.concat(\n MultiChart.prototype._2DChartTypes.concat(\n MultiChart.prototype._NDChartTypes.concat(\n MultiChart.prototype._mapChartTypes.concat(\n MultiChart.prototype._anyChartTypes\n ))))));\nMultiChart.prototype._allMap = d3Map(MultiChart.prototype._allChartTypes, function (item: any) { return item.family; });\nMultiChart.prototype._allFamilies = MultiChart.prototype._allMap.keys();\nMultiChart.prototype._allChartTypesMap = {};\nMultiChart.prototype._allChartTypesByClass = {};\nMultiChart.prototype._allChartTypes.forEach(function (item) {\n item.widgetPath = Utility.widgetPath(item.widgetClass);\n MultiChart.prototype._allChartTypesMap[item.id] = item;\n MultiChart.prototype._allChartTypesByClass[item.widgetClass] = item;\n});\n\nMultiChart.prototype.publishReset();\nMultiChart.prototype.publish(\"hideRowOnLegendClick\", false, \"boolean\", \"Enable/Disable hiding row on legend clicks\", null, { tags: [\"Basic\"] });\nMultiChart.prototype.publish(\"chartType\", \"BUBBLE\", \"set\", \"Chart Type\", MultiChart.prototype._allChartTypes.map(function (item) { return item.id; }), { tags: [\"Basic\"] });\nMultiChart.prototype.publish(\"chart\", null, \"widget\", \"Chart\", null, { tags: [\"Basic\"] });\n\nconst _origChart = MultiChart.prototype.chart;\nMultiChart.prototype.chart = function (_?) {\n const retVal = _origChart.apply(this, arguments);\n if (arguments.length) {\n const context = this;\n if (this._allChartTypesByClass[_.classID()]) {\n this.chartType(this._allChartTypesByClass[_.classID()].id);\n } else {\n console.warn(\"Unknown Class ID: \" + _.classID());\n }\n _.click = function (_row, _column, _selected) {\n context.click.apply(context, arguments);\n };\n _.dblclick = function (_row, _column, _selected) {\n context.dblclick.apply(context, arguments);\n };\n _.vertex_click = function (row, column, selected, more) {\n context.vertex_click.apply(context, arguments);\n };\n _.vertex_dblclick = function (row, column, selected, more) {\n context.vertex_dblclick.apply(context, arguments);\n };\n _.edge_click = function (row, column, selected, more) {\n context.edge_click.apply(context, arguments);\n };\n _.edge_dblclick = function (row, column, selected, more) {\n context.edge_dblclick.apply(context, arguments);\n };\n if (this._chartMonitor) {\n this._chartMonitor.remove();\n delete this._chartMonitor;\n }\n this._chartMonitor = _.monitor(function (key, newVal, oldVal) {\n context.broadcast(key, newVal, oldVal, _);\n });\n }\n return retVal;\n};\n","import { HTMLWidget, Widget } from \"@hpcc-js/common\";\nimport { ChartPanel } from \"@hpcc-js/layout\";\nimport { MultiChart } from \"./MultiChart.ts\";\n\nimport \"../src/ChartPanel.css\";\n\nclass Summary extends HTMLWidget {\n\n constructor() {\n super();\n }\n\n enter(domNode, element) {\n super.enter(domNode, element);\n element.append(\"p\");\n }\n\n update(domNode, element) {\n super.update(domNode, element);\n element.select(\"p\").text(this.text());\n }\n}\ninterface Summary {\n text(): string;\n text(_: string): this;\n}\nSummary.prototype.publish(\"text\", \"\", \"string\");\n\nexport class MultiChartPanel extends ChartPanel<MultiChart> {\n\n constructor() {\n super();\n this.widget(new MultiChart().chartType(\"COLUMN\"));\n }\n\n multiChart(): MultiChart {\n return this._widget;\n }\n\n chartType(): string;\n chartType(_: string): this;\n chartType(_?: string): string | this {\n if (!arguments.length) return this._widget.chartType();\n this._widget.chartType(_);\n return this;\n }\n\n chart(): Widget;\n chart(_: Widget): this;\n chart(_?: Widget): Widget | this {\n if (!arguments.length) return this._widget.chart();\n this._widget.chart(_);\n return this;\n }\n\n chartTypeDefaults(): object;\n chartTypeDefaults(_: object): this;\n chartTypeDefaults(_?: object): this | object {\n if (!arguments.length) return this._widget.chartTypeDefaults();\n this._widget.chartTypeDefaults(_);\n return this;\n }\n\n chartTypeProperties(): object;\n chartTypeProperties(_: object): this;\n chartTypeProperties(_?: object): this | object {\n if (!arguments.length) return this._widget.chartTypeProperties();\n this._widget.chartTypeProperties(_);\n return this;\n }\n\n update(domNode, element) {\n super.update(domNode, element);\n if (this._widget instanceof MultiChart) {\n this._legend.dataFamily(this._widget.getChartDataFamily());\n }\n super.update(domNode, element);\n }\n}\nMultiChartPanel.prototype._class += \" composite_MultiChartPanel\";\n","import { OnOff } from \"@hpcc-js/form\";\nimport { Border, Toolbar } from \"@hpcc-js/layout\";\nimport { PropertyEditor } from \"@hpcc-js/other\";\n\nimport \"../src/Dermatology.css\";\n\nexport class Dermatology extends Border {\n _toolbar;\n _propEditor;\n _showProperties;\n _propsButton;\n _prevWidget;\n\n constructor() {\n super();\n\n this._toolbar = new Toolbar()\n .title(\"Dermatology\")\n ;\n this._propEditor = new PropertyEditor()\n .show_settings(true)\n ;\n }\n\n showProperties(_?) {\n if (!arguments.length) return this._showProperties;\n this._showProperties = _;\n this\n .rightPercentage(0)\n .rightSize(this._showProperties ? 360 : 0)\n .setContent(\"right\", this._showProperties ? this._propEditor : null)\n ;\n const widget = this.widget();\n if (widget && widget.designMode) {\n widget.designMode(this._showProperties);\n }\n return this;\n }\n\n toggleProperties() {\n return this.showProperties(!this.showProperties());\n }\n\n enter(domNode, element) {\n super.enter(domNode, element);\n\n this\n .topPercentage(0)\n .topSize(0)\n .setContent(\"top\", this._toolbar)\n ;\n this.getCell(\"top\").surfaceShadow(true);\n\n const context = this;\n this._propsButton = new OnOff()\n .id(this.id() + \"_props\")\n .value(\"Properties\")\n .on(\"click\", function () {\n context\n .toggleProperties()\n .render()\n ;\n })\n ;\n this._toolbar.widgets([this._propsButton]);\n }\n\n update(domNode, element) {\n this\n .topPercentage(0)\n .topSize(this.showToolbar() ? 32 : 0)\n ;\n\n super.update(domNode, element);\n\n const widget = this.widget();\n element.style(\"background-color\", widget && widget.surfaceShadow ? null : \"white\");\n }\n\n render(callback) {\n const widget = this.widget();\n if (widget !== this._prevWidget) {\n if (widget && widget.surfaceShadow) {\n widget.surfaceBackgroundColor_default(\"white\");\n }\n this.setContent(\"center\", widget);\n this._propEditor.widget(widget);\n this._prevWidget = widget;\n }\n return super.render(callback);\n }\n\n showToolbar: { (): boolean; (_: boolean): Dermatology };\n showToolbar_exists: () => boolean;\n widget: { (): any; (_: any): Dermatology };\n widget_exists: () => boolean;\n}\nDermatology.prototype._class += \" composite_Dermatology\";\n\nDermatology.prototype.publish(\"showToolbar\", true, \"boolean\", \"Show Toolbar\");\nDermatology.prototype.publish(\"widget\", null, \"widget\", \"Widget\");\n","import { Database, Text, Utility } from \"@hpcc-js/common\";\nimport { Button, Input, Select } from \"@hpcc-js/form\";\nimport { Border, Grid, Toolbar } from \"@hpcc-js/layout\";\nimport { Html, Legend } from \"@hpcc-js/other\";\nimport { select as d3Select } from \"d3-selection\";\nimport \"d3-transition\";\nimport { MultiChart } from \"./MultiChart.ts\";\n\nimport \"../src/MegaChart.css\";\n\nexport class MegaChart extends Border {\n _chart = new MultiChart();\n _toolbar = new Toolbar();\n _valueTitle = new Text();\n _domainTitle = new Text();\n _legend: Legend = new Legend();\n _csvButton;\n _infoButton;\n _maximizeButton;\n _legendButton;\n _chartTypeSelect;\n _prevLegendPosition;\n _prevShowToolbar;\n _1DChartTypes;\n _2DChartTypes;\n _NDChartTypes;\n _anyChartTypes;\n _allChartTypes;\n _contentClasses;\n _dataCount;\n\n constructor() {\n super();\n this._tag = \"div\";\n const context = this;\n this._chart.click = function () {\n context.click.apply(context, arguments);\n };\n this._chart.dblclick = function () {\n context.dblclick.apply(context, arguments);\n };\n this._chart.vertex_click = function () {\n context.vertex_click.apply(context, arguments);\n };\n this._chart.vertex_dblclick = function () {\n context.vertex_dblclick.apply(context, arguments);\n };\n this._chart.edge_click = function () {\n context.edge_click.apply(context, arguments);\n };\n this._chart.edge_dblclick = function () {\n context.edge_dblclick.apply(context, arguments);\n };\n }\n\n toolbarWidgets(_?) {\n if (!arguments.length) return this._toolbar.widgets();\n this._toolbar.widgets(_);\n return this;\n }\n\n chartTypeDefaults(_?) {\n if (!arguments.length) return this._chart.chartTypeDefaults();\n this._chart.chartTypeDefaults(_);\n return this;\n }\n\n chartTypeProperties(_?) {\n if (!arguments.length) return this._chart.chartTypeProperties();\n this._chart.chartTypeProperties(_);\n return this;\n }\n\n fields(): Database.Field[];\n fields(_: Database.Field[]): this;\n fields(_?: Database.Field[]): Database.Field[] | this {\n if (!arguments.length) return this._chart.fields();\n this._chart.fields(_);\n return this;\n }\n\n columns(): string[];\n columns(_: string[], asDefault?: boolean): this;\n columns(_?: string[], asDefault?: boolean): string[] | this {\n if (!arguments.length) return this._chart.columns();\n this._chart.columns(_, asDefault);\n return this;\n }\n\n data(_?) {\n if (!arguments.length) return this._chart.data();\n this._chart.data(_);\n return this;\n }\n\n downloadCSV() {\n Utility.downloadString(\"CSV\", this._chart.export(\"CSV\"));\n return this;\n }\n\n enter(domNode, element) {\n super.enter(domNode, element);\n const context = this;\n\n this.topShrinkWrap(false).topPercentage(0).topSize(30);\n this._dataCount = new Html()\n .classed({ \"composite_MegaChart-dataCount\": true })\n .id(this.id() + \"_dataCount\")\n .html('<span class=\"MegaChart-dataCount-label\">Count:</span> <span class=\"MegaChart-dataCount-value\">' + (this.data() ? this.data().length : \"0\") + \"</span>\")\n .overflowX(\"visible\")\n .overflowY(\"visible\")\n ;\n\n this._csvButton = new Button()\n .classed({ \"composite_MegaChart-CSV\": true })\n .id(this.id() + \"_csv\")\n .value(\"CSV\")\n ;\n this._csvButton.click = function (a) {\n context.downloadCSV();\n };\n\n this._infoButton = new Button()\n .classed({ \"composite_MegaChart-Info\": true })\n .id(this.id() + \"_info\")\n .value(this.infoIcon())\n ;\n\n this._maximizeButton = new Button()\n .classed({ \"composite_MegaChart-Maximize\": true })\n .id(this.id() + \"_maximize\")\n .value(\"\\uf2d0\")\n ;\n this._maximizeButton.click = function (buttonWidget) {\n const target = context.target() as any;\n let node = target;\n const isMaximized = d3Select(target).classed(\"__hpccisMaximized\");\n\n // Find the layout_Grid ancestor\n const parentGrid = context.locateAncestor(\"layout_Grid\");\n if (parentGrid) {\n node = parentGrid.element().node();\n } else {\n node = document.body;\n }\n\n const targetElement = d3Select(context.target()) as any;\n if (isMaximized) {\n // Restore from maximized to natural size/position\n const targetParentBox = target.parentElement.getBoundingClientRect();\n const targetPaddingTop = parseInt(getComputedStyle(target, null).getPropertyValue(\"padding-top\").replace(\"px\", \"\"));\n const targetPaddingLeft = parseInt(getComputedStyle(target, null).getPropertyValue(\"padding-left\").replace(\"px\", \"\"));\n const targetPaddingRight = parseInt(getComputedStyle(target, null).getPropertyValue(\"padding-right\").replace(\"px\", \"\"));\n const targetPaddingBottom = parseInt(getComputedStyle(target, null).getPropertyValue(\"padding-bottom\").replace(\"px\", \"\"));\n context.contentDiv.style(\"opacity\", 0).transition(100);\n targetElement.transition()// .duration(3000)\n .style(\"top\", targetParentBox.top + \"px\")\n .style(\"left\", targetParentBox.left + \"px\")\n .style(\"width\", (targetParentBox.width - targetPaddingLeft - targetPaddingRight) + \"px\")\n .style(\"height\", (targetParentBox.height - targetPaddingTop - targetPaddingBottom) + \"px\")\n .each(\"end\", function () {\n targetElement.style(\"position\", target.__old_position);\n targetElement.style(\"z-index\", target.__old_zindex);\n targetElement.style(\"background-color\", target.__old_backgroundColor);\n targetElement.style(\"box-shadow\", target.__old_boxshadow);\n context\n .resize({\n width: targetParentBox.width - targetPaddingLeft - targetPaddingRight,\n height: targetParentBox.height - targetPaddingTop - targetPaddingBottom\n })\n .render(function () {\n context.contentDiv.transition()\n .style(\"opacity\", 1);\n });\n buttonWidget.value(\"\\uf2d0\").render();\n });\n } else {\n // Maximize this MegaChart\n target.__old_position = target.style.position;\n target.__old_zindex = target.style.zIndex;\n target.__old_boxshadow = target.style.boxShadow;\n target.__old_backgroundColor = context.element().style(\"background-color\");\n const grid = d3Select(node).datum() as Grid;\n const gridTarget = grid.target();\n const gridBox = grid ? gridTarget.getBoundingClientRect() : node.getBoundingClientRect();\n const gridPaddingTop = parseInt(getComputedStyle(gridTarget, null).getPropertyValue(\"padding-top\").replace(\"px\", \"\"));\n const gridPaddingLeft = parseInt(getComputedStyle(gridTarget, null).getPropertyValue(\"padding-left\").replace(\"px\", \"\"));\n const gridPaddingRight = parseInt(getComputedStyle(gridTarget, null).getPropertyValue(\"padding-right\").replace(\"px\", \"\"));\n const gridPaddingBottom = parseInt(getComputedStyle(gridTarget, null).getPropertyValue(\"padding-bottom\").replace(\"px\", \"\"));\n context.contentDiv.style(\"opacity\", 0).transition(100);\n targetElement\n .style(\"position\", \"fixed\")\n .style(\"z-index\", 999999)\n .style(\"box-shadow\", \"0 8px 8px 0 rgba(0,0,0,.14),0 12px 4px -8px rgba(0,0,0,.2),0 4px 20px 0 rgba(0,0,0,.12)\")\n .style(\"background-color\", target.__old_backgroundColor)\n .transition()// .duration(3000)\n .style(\"top\", (gridBox.top + gridPaddingTop) + \"px\")\n .style(\"left\", (gridBox.left + gridPaddingLeft) + \"px\")\n .style(\"width\", (gridBox.width - gridPaddingLeft - gridPaddingRight) + \"px\")\n .style(\"height\", (gridBox.height - gridPaddingTop - gridPaddingBottom) + \"px\")\n .each(\"end\", function () {\n targetElement.style(\"background-color\", context.maximizedBackgroundColor());\n context\n .resize({\n width: (gridBox.width - gridPaddingLeft - gridPaddingRight),\n height: (gridBox.height - gridPaddingTop - gridPaddingBottom)\n })\n .render(function () {\n context.contentDiv.transition()\n .style(\"opacity\", 1);\n });\n buttonWidget.value(\"\\uf2d1\").render();\n });\n }\n\n d3Select(target).classed(\"__hpccisMaximized\", !isMaximized);\n };\n\n this._legendButton = new Input()\n .classed({ \"composite_MegaChart-legend\": true })\n .id(this.id() + \"_legend\")\n .type(\"checkbox\")\n .inlineLabel(\"Legend: \")\n ;\n this._legendButton.click = function (a) {\n context.render();\n };\n\n this._chartTypeSelect = new Select()\n .classed({ \"composite_MegaChart-chartType\": true })\n .id(this.id() + \"_chartType\")\n .selectOptions(this._allChartTypes.map(function (a) { return [a.id, a.display]; }))\n .value(this.chartType())\n ;\n this._chartTypeSelect.change = function (a) {\n context.chartType(a.value()).render();\n };\n\n this.setContent(\"center\", this._chart);\n\n this._legend\n .targetWidget(this._chart)\n .orientation([\"top\", \"bottom\"].indexOf(this.legendPosition()) !== -1 ? \"horizontal\" : \"vertical\")\n .fixedSize(true)\n ;\n\n this._prevLegendPosition = this.legendPosition();\n\n if (this.valueAxisTitle()) {\n this.setContent(\"left\", this._valueTitle.rotation(-90)).leftShrinkWrap(true);\n }\n if (this.domainAxisTitle()) {\n this.setContent(\"bottom\", this._domainTitle).bottomShrinkWrap(true);\n }\n\n if (this.legendPosition() !== \"none\") {\n this.setContent(this.legendPosition(), this._legend)[this.legendPosition() + \"ShrinkWrap\"](true);\n }\n }\n\n update(domNode, element) {\n function showHideButton(twArr2, button, show) {\n if (show && twArr2.indexOf(button) === -1) {\n twArr2.push(button);\n } else if (!show) {\n const idx = twArr2.indexOf(button);\n if (idx >= 0) {\n twArr2.splice(idx, 1);\n }\n }\n }\n\n if (this._chart && typeof this._chart.hideRowOnLegendClick === \"function\") {\n this._chart.hideRowOnLegendClick(this.hideRowOnLegendClick());\n }\n\n this._dataCount.html('<span class=\"MegaChart-dataCount-label\">Count:</span> <span class=\"MegaChart-dataCount-value\">' + (this.data() ? this.data().length : \"0\") + \"</span>\");\n\n this._chartTypeSelect.value(this.chartType());\n const twArr = this.toolbarWidgets();\n showHideButton(twArr, this._csvButton, this.showCSV());\n showHideButton(twArr, this._maximizeButton, this.showMaximize());\n showHideButton(twArr, this._legendButton, this.toolbarShowLegend());\n showHideButton(twArr, this._chartTypeSelect, this.showChartSelect());\n showHideButton(twArr, this._infoButton, this.showInfoButton());\n showHideButton(twArr, this._dataCount, this.showCount());\n this.toolbarWidgets(twArr);\n\n if (this._prevShowToolbar !== this.showToolbar()) {\n this.setContent(\"top\", this.showToolbar() ? this._toolbar : null);\n this._prevShowToolbar = this.showToolbar();\n }\n\n // TODO: Proxy + themes not working...\n this._toolbar\n .fontSize(this.titleFontSize())\n .fontColor(this.titleFontColor())\n .fontFamily(this.titleFontFamily())\n .fontBold(this.titleFontBold())\n .backgroundColor(this.titleBackgroundColor())\n ;\n\n this._chart\n .data(this.data());\n\n if (this._chart.chartType() !== this.chartType()) {\n this._chart.chartType(this.chartType());\n }\n\n let legendPosition = this.legendPosition();\n if (this.toolbarShowLegend() && !this._legendButton.checked()) {\n legendPosition = \"none\";\n }\n if (this._prevLegendPosition !== legendPosition) {\n if (this._prevLegendPosition !== \"none\") {\n this.clearContent(this._prevLegendPosition);\n }\n this._prevLegendPosition = legendPosition;\n if (legendPosition !== \"none\") {\n this._legend = new Legend().targetWidget(this.getContent(\"center\").fixedSize(true));\n this.setContent(legendPosition, this._legend);\n this._legend.orientation([\"top\", \"bottom\"].indexOf(legendPosition) !== -1 ? \"horizontal\" : \"vertical\");\n }\n }\n this._contentClasses = this.getContentClasses();\n\n if (this.valueAxisTitle() && this._contentClasses.left !== \"common_Text\") {\n if (legendPosition !== \"left\") {\n this.setContent(\"left\", this._valueTitle.rotation(-90));\n }\n }\n if (this.domainAxisTitle() && this._contentClasses.bottom !== \"common_Text\") {\n if (legendPosition !== \"bottom\") {\n this.setContent(\"bottom\", this._domainTitle).bottomShrinkWrap(true);\n }\n }\n\n this._legend.dataFamily(this._chart.getChartDataFamily());\n\n super.update(domNode, element);\n }\n\n exit(domNode, element) {\n super.exit(domNode, element);\n }\n\n getContentClasses() {\n const obj: any = {};\n const t = this.getContent(\"top\");\n const r = this.getContent(\"right\");\n const b = this.getContent(\"bottom\");\n const l = this.getContent(\"left\");\n obj.top = t !== null ? t.classID() : undefined;\n obj.right = r !== null ? r.classID() : undefined;\n obj.bottom = b !== null ? b.classID() : undefined;\n obj.left = l !== null ? l.classID() : undefined;\n return obj;\n }\n\n serializeState() {\n const state: any = {\n title: this.title(),\n data: this.data()\n };\n const chart = this.chart();\n if (chart) {\n if (chart.serializeState) {\n state.chart = chart.serializeState();\n delete state.chart.data;\n }\n }\n return state;\n }\n\n deserializeState(state) {\n if (state) {\n this\n .title(state.title)\n .data(state.data)\n ;\n const chart = this.chart();\n if (chart && state.chart) {\n if (chart.serializeState) {\n chart.deserializeState(state.chart);\n }\n }\n }\n return this;\n }\n\n // Events ---\n click(row, column, selected) {\n }\n\n dblclick(row, column, selected) {\n }\n vertex_click(row, col, sel, more) {\n if (more && more.vertex) {\n // console.log(\"Vertex click: \" + more.vertex.id());\n }\n }\n\n vertex_dblclick(row, col, sel, more) {\n if (more && more.vertex) {\n // console.log(\"Vertex double click: \" + more.vertex.id());\n }\n }\n\n edge_click(row, col, sel, more) {\n if (more && more.edge) {\n // console.log(\"Edge click: \" + more.edge.id());\n }\n }\n\n edge_dblclick(row, col, sel, more) {\n if (more && more.edge) {\n // console.log(\"Edge double click: \" + more.edge.id());\n }\n }\n\n hideRowOnLegendClick: { (): boolean; (_: boolean): MegaChart };\n hideRowOnLegendClick_exists: () => boolean;\n showToolbar: { (): boolean; (_: boolean): MegaChart };\n showToolbar_exists: () => boolean;\n titleFontSize: { (): number; (_: number): MegaChart };\n titleFontSize_exists: () => boolean;\n titleFontColor: { (): string; (_: string): MegaChart };\n titleFontColor_exists: () => boolean;\n titleFontFamily: { (): string; (_: string): MegaChart };\n titleFontFamily_exists: () => boolean;\n titleFontBold: { (): boolean; (_: boolean): MegaChart };\n titleFontBold_exists: () => boolean;\n titleBackgroundColor: { (): string; (_: string): MegaChart };\n titleBackgroundColor_exists: () => boolean;\n maximizedBackgroundColor: { (): string; (_: string): MegaChart };\n maximizedBackgroundColor_exists: () => boolean;\n showChartSelect: { (): boolean; (_: boolean): MegaChart };\n showChartSelect_exists: () => boolean;\n showCSV: { (): boolean; (_: boolean): MegaChart };\n showCSV_exists: () => boolean;\n showCount: { (): boolean; (_: boolean): MegaChart };\n showCount_exists: () => boolean;\n showMaximize: { (): boolean; (_: boolean): MegaChart };\n showMaximize_exists: () => boolean;\n toolbarShowLegend: { (): boolean; (_: boolean): MegaChart };\n toolbarShowLegend_exists: () => boolean;\n showInfoButton: { (): boolean; (_: boolean): MegaChart };\n showInfoButton_exists: () => boolean;\n infoIcon: { (): string; (_: string): MegaChart };\n infoIcon_exists: () => boolean;\n legendPosition: { (): string; (_: string): MegaChart };\n legendPosition_exists: () => boolean;\n\n title: { (): string; (_: string): MegaChart };\n title_exists: () => boolean;\n\n domainAxisTitle: { (): string; (_: string): MegaChart };\n domainAxisTitle_exists: () => boolean;\n valueAxisTitle: { (): string; (_: string): MegaChart };\n valueAxisTitle_exists: () => boolean;\n\n chartType: { (): string; (_: string): MegaChart };\n chartType_exists: () => boolean;\n chart: { (): any; (_: any): MegaChart };\n chart_exists: () => boolean;\n}\nMegaChart.prototype._class += \" composite_MegaChart\";\n\nMegaChart.prototype._1DChartTypes = MultiChart.prototype._1DChartTypes;\nMegaChart.prototype._2DChartTypes = MultiChart.prototype._2DChartTypes;\nMegaChart.prototype._NDChartTypes = MultiChart.prototype._NDChartTypes;\nMegaChart.prototype._anyChartTypes = MultiChart.prototype._anyChartTypes;\nMegaChart.prototype._allChartTypes = MultiChart.prototype._allChartTypes;\n\nMegaChart.prototype.publishReset();\n\nMegaChart.prototype.publish(\"hideRowOnLegendClick\", false, \"boolean\", \"Enable/Disable hiding row on legend clicks\", null, { tags: [\"Basic\"] });\nMegaChart.prototype.publish(\"showToolbar\", true, \"boolean\", \"Enable/Disable Toolbar widget\", null, { tags: [\"Basic\"] });\nMegaChart.prototype.publishProxy(\"title\", \"_toolbar\", \"title\");\nMegaChart.prototype.publish(\"ddlParamsFormat\", \"\", \"string\", \"DDL Param Format '{fname}, {lname}'\", null, { tags: [\"Advanced\"], optional: true });\nMegaChart.prototype.publish(\"titleFontSize\", null, \"number\", \"Title Font Size (px)\", null, { tags: [\"Advanced\"], optional: true });\nMegaChart.prototype.publish(\"titleFontColor\", null, \"html-color\", \"Title Font Color\", null, { tags: [\"Advanced\"], optional: true });\nMegaChart.prototype.publish(\"titleFontFamily\", null, \"string\", \"Title Font Family\", null, { tags: [\"Advanced\"], optional: true });\nMegaChart.prototype.publish(\"titleFontBold\", true, \"boolean\", \"Enable Bold Title Font\", null, { tags: [\"Advanced\"], optional: true });\nMegaChart.prototype.publish(\"titleBackgroundColor\", null, \"html-color\", \"Background Color\", null, { tags: [\"Intermediate\"], optional: true });\nMegaChart.prototype.publish(\"maximizedBackgroundColor\", \"#FFFFFF\", \"html-color\", \"Background Color while maximized\", null, { tags: [\"Intermediate\"], optional: true });\n\nMegaChart.prototype.publish(\"showChartSelect\", true, \"boolean\", \"Show/Hide the chartType dropdown in the toolbar\", null, { tags: [\"Basic\"] });\nMegaChart.prototype.publish(\"showCSV\", true, \"boolean\", \"Show/Hide CSV button\", null, { tags: [\"Basic\"] });\nMegaChart.prototype.publish(\"showCount\", false, \"boolean\", \"Show/Hide Data Count\", null, { tags: [\"Basic\"] });\nMegaChart.prototype.publish(\"showMaximize\", false, \"boolean\", \"Show/Hide Maximize button\", null, { tags: [\"Basic\"] });\nMegaChart.prototype.publish(\"toolbarShowLegend\", false, \"boolean\", \"Show/Hide Legend button\", null, { tags: [\"Basic\"] });\nMegaChart.prototype.publish(\"showInfoButton\", false, \"boolean\", \"Show/Hide Info button in toolbar\", null, { tags: [\"Basic\"] });\nMegaChart.prototype.publish(\"infoIcon\", \"\\uf05a\", \"string\", \"Help Icon\", null, { tags: [\"Basic\"] });\n\nMegaChart.prototype.publish(\"legendPosition\", \"none\", \"set\", \"Position of the Legend widget\", [\"none\", \"top\", \"right\", \"bottom\", \"left\"], { tags: [\"Basic\"] });\nMegaChart.prototype.publishProxy(\"legendFormat\", \"_legend\", \"rainbowFormat\");\nMegaChart.prototype.publishProxy(\"legendBins\", \"_legend\", \"rainbowBins\");\n\nMegaChart.prototype.publishProxy(\"domainAxisTitle\", \"_domainTitle\", \"text\");\nMegaChart.prototype.publishProxy(\"valueAxisTitle\", \"_valueTitle\", \"text\");\n\nMegaChart.prototype.publishProxy(\"chartType\", \"_chart\", \"chartType\");\nMegaChart.prototype.publishProxy(\"chart\", \"_chart\", \"chart\");\n","import { Platform, Utility, Widget } from \"@hpcc-js/common\";\nimport { Persist } from \"@hpcc-js/other\";\nimport { requireWidget } from \"./Utility.ts\";\n\nexport function retrofit_114_serialization(state, replacement_version) {\n replacement_version = !replacement_version || replacement_version === \"1.14.2-dev\" ? \"1.18.0\" : replacement_version;\n if (!state.__version) return state;\n const state_version_obj = Utility.parseVersionString(state.__version);\n const target_version_obj = Utility.parseVersionString(replacement_version);\n if (state_version_obj.major === 1 && state_version_obj.minor === 14) {\n console.info(\"Upgrading old persist from \" + state.__version + \" to \" + replacement_version);\n let _json_str = JSON.stringify(state);\n _json_str = _json_str.split('\"' + state.__version).join('\"' + replacement_version);\n\n const ret_obj = JSON.parse(_json_str);\n if (ret_obj.__properties && ret_obj.__properties.content) {\n ret_obj.__properties.content.forEach(function (n) {// FOR EACH top tier layout_Cell\n if (JSON.stringify(n).split(\"graph_Graph\").length > 1 && target_version_obj.minor >= 16) {\n n.__properties.widget.__id = n.__properties.widget.__properties.widget.__id;\n n.__properties.widget.__class = \"composite_MegaChart\";\n n.__properties.widget.__properties.showCSV = false;\n n.__properties.widget.__properties.chartType = \"GRAPH\";\n n.__properties.widget.__properties.chart = n.__properties.widget.__properties.widget;\n delete n.__properties.widget.__properties.chart.__id;\n delete n.__properties.widget.__properties.widget;\n }\n if (\"undefined\" === typeof n.__properties.fields) {\n n.__properties.fields = [];\n }\n });\n }\n return ret_obj;\n } else {\n return state;\n }\n}\n\nexport function deserializeFromObject(widget, state) {\n const promises = [];\n Persist.widgetPropertyWalker(widget, null, (w, item) => {\n w[item.id + \"_reset\"]();\n if (state.__properties[item.id] !== undefined) {\n switch (item.type) {\n case \"widget\":\n const widgetKey = item.id;\n promises.push(create(state.__properties[item.id]).then((w2: any) => {\n w2._owner = w;\n w[widgetKey](w2);\n return w2;\n }));\n break;\n case \"widgetArray\":\n case \"propertyArray\":\n const widgetArrayKey = item.id;\n const widgetStateArray = state.__properties[item.id];\n if (widgetStateArray.length) {\n const arrPromises = [];\n for (const widgetState of widgetStateArray) {\n arrPromises.push(create(widgetState).then((widgetItem: any) => {\n widgetItem._owner = w;\n return widgetItem;\n }));\n }\n promises.push(Promise.all(arrPromises).then(widgetArray => {\n w[widgetArrayKey](widgetArray);\n }));\n }\n break;\n default:\n w[item.id](state.__properties[item.id]);\n break;\n }\n }\n });\n return Promise.all(promises).then(widgets => {\n if (state.__data) {\n for (const key in state.__data) {\n if (state.__data.HasOwnProperty(key)) {\n switch (key) {\n case \"data\":\n widget.data(state.__data[key]);\n break;\n default:\n console.warn(\"Unexpected __data item: \" + key);\n widget[key](state.__data[key]);\n break;\n }\n }\n }\n }\n if (state.__state) {\n if (widget.deserializeState) {\n widget.deserializeState(state.__state);\n } else if (state.__state.data && widget.data) {\n widget.data(state.__state.data);\n }\n }\n return widget;\n });\n}\n\nexport function deserialize(widget, state) {\n if (typeof state === \"string\") {\n state = JSON.parse(state);\n }\n if (state.__id && state.__id.indexOf(widget._idSeed) !== 0 && widget._id !== state.__id) {\n console.warn(\"Deserialize: IDs do not match - \" + widget._id);\n }\n deserializeFromObject(widget, state);\n}\n\nexport function create(state: any): Promise<Widget> {\n if (typeof state === \"string\") {\n state = JSON.parse(state);\n }\n state = retrofit_114_serialization(state, Platform.version());\n return requireWidget(state.__class).then((WidgetClass: any) => {\n const widget = new WidgetClass();\n if (state.__id && state.__id.indexOf(widget._idSeed) !== 0 && state.__id.indexOf(\"_pe\") !== 0) {\n widget._id = state.__id;\n }\n return deserializeFromObject(widget, state);\n }).catch(function (e) {\n console.error(\"Persist.create: ***exception***\");\n console.error(e);\n });\n}\n\nexport function clone(widget) {\n create(Persist.serializeToObject(widget, undefined, true, true));\n}\n"],"mappings":"mnCCKA,IAAI,EAAW,OAAO,OAClB,EAAY,OAAO,eACnB,EAAmB,OAAO,yBAC1B,EAAoB,OAAO,oBAC3B,EAAe,OAAO,eACtB,EAAe,OAAO,UAAU,eAChC,EAAA,CAAc,EAAI,IAAQ,WAC7B,OAAO,IAAA,EAAW,EAAG,EAAkB,GAAI,MAAM,EAAM,CAAE,QAAS,CAAA,IAAM,QAAS,GAAM,EAAI,SAYxF,EAAA,CAAW,EAAK,EAAY,KAAY,EAAgB,MAAP,EAAc,EAAS,EAAa,IAAQ,CAAA,EAV7F,EAAe,EAAI,EAAM,EAAQ,KACpC,GAAI,GAAwB,iBAAT,GAAqC,mBAAT,EAAqB,IAAK,IAA4D,EAAxD,EAAO,EAAkB,GAAO,EAAI,EAAG,EAAI,EAAK,OAAa,EAAI,EAAG,IAChJ,EAAM,EAAK,GACN,EAAa,KAAK,EAAI,IAAQ,IAAQ,GAAQ,EAAU,EAAI,EAAK,CACrE,KAAO,GAAQ,EAAK,IAAM,KAAK,KAAM,GACrC,aAAc,EAAO,EAAiB,EAAM,KAAS,EAAK,aAG5D,OAAO,GAE6F,EAAY,GAAe,GAAQ,EAAI,WAGvI,EAHoJ,EAAU,EAAQ,UAAW,CACrL,MAAO,EACP,YAAY,IACA,IAUT,EAAkB,cAAcA,EAAAA,WACnC,WAAA,GACC,QACA,KAAK,KAAO,MAEb,KAAA,CAAM,EAAS,GACd,MAAM,MAAM,EAAS,GAEtB,MAAA,CAAO,EAAS,GACf,MAAM,OAAO,EAAS,GACtB,IAAI,EA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